Create Hook
Create a Hook
Open the Hooks page from Backup & Recovery.
Click Create New in the top-right corner.

The Create Hook dialog opens.

Fields
Namespace: Select the namespace where the hook will be created.
Name: Enter a name for the hook.
PRE: Commands that run before a backup or snapshot.
This section is optional.
If you fill in any field, all PRE fields become required.
To clear the PRE fields, click Clear.
Ignore failure: If enabled, TVK ignores failures for pre-hook execution.
Timeout (sec): Mark the hook as failed if it does not complete in time.
Max retry count: Maximum retry attempts for the command.
Command: Command to run. Include the shell and args (for example,
bash -c "<command>").
POST: Commands that run after a backup or snapshot.
If you fill in any field, all POST fields become required.
To clear the POST fields, click Clear.
Ignore failure: If enabled, TVK ignores failures for post-hook execution.
Timeout (sec): Mark the hook as failed if it does not complete in time.
Max retry count: Maximum retry attempts for the command.
Command: Command to run. Include the shell and args (for example,
bash -c "<command>").
Create: Create the hook.
Cancel: Close the dialog without saving.
Hooks without a PRE section cannot be selected for Backup Plan or Snapshot workflows.
Last updated