> For the complete documentation index, see [llms.txt](https://docs.trilio.io/kubernetes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trilio.io/kubernetes/5.2.x/getting-started/using-trilio/getting-started-with-management-console/navigating-intro/backup-and-recovery/hooks/create-hook.md).

# 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/laj9e4H0SXspJdp2VHpZ" alt=""><figcaption></figcaption></figure>

On click on Create New to Create a new Hook.

<figure><img src="/files/teFc0WWPX6EPZXbz3fV7" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
