# Create Hook

## Create New Hook

Redirect to Hooks page from Backup & Recovery. To create a new Hook click on **Create New** from right side upper corner.

<figure><img src="/files/2rA0YbjiuErGqGJDBc0q" alt=""><figcaption></figcaption></figure>

On click on Create New to Create a new Hook.

<figure><img src="/files/yZeZVhmZXD4MvSyXr0Pk" alt=""><figcaption></figcaption></figure>

1. Namespace - Select this is in which namespace user will create the Hook.
2. Name - This is the name for the Hook.
3. PRE - TVK provides capability to specify prestop commands to be executed against the application before backup operation.
   1. Ignore failure - This is to set failure toggle, if enable all the failures will be ignored for pre hooks execution
   2. Timeout(sec) - Hook execution will be considered in error if it fails to complete within timeout.
   3. Max Retry Count - It is maximum retry count for the command execution.
   4. Command - The command to be executed as a part of Hook. Specifies the action to perform. Commands should include what shell to use and its args which will be able to run without the shell.
4. POST - TVK provides capability to specify poststart commands to be executed to quiesce the application before backup operation.
   1. Ignore failuire - This is to set failure toggle, if enable all the failures will be ignored for pre hooks execution
   2. Timeout(sec) - Hook execution will be considered in error if it fails to complete within timeout.
   3. Max Retry Count - It is maximum retry count for the command execution.
   4. Command - The command to be executed as a part of Hook. Specifies the action to perform. Commands should include what shell to use and its args which will be able to run without the shell.
5. Create - Hit this if all entered information is correct and validated and to create Hook.
6. Cancel - This is to revert and cancel the hook creation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trilio.io/kubernetes/5.0.x/getting-started/using-trilio/getting-started-with-management-console/navigating-intro/backup-and-recovery/hooks/create-hook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
