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

  1. Namespace: Select the namespace where the hook will be created.

  2. Name: Enter a name for the hook.

  3. 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>").

  4. 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>").

  5. Create: Create the hook.

  6. Cancel: Close the dialog without saving.

circle-info

Hooks without a PRE section cannot be selected for Backup Plan or Snapshot workflows.

Last updated