{{ "🔄 Pre-Job Hook" if hook_type == "pre" else "✅ Post-Job Hook" }}
{% if loop is defined and loop.index0 > 0 %} {% else %}
{% endif %} {% if loop is defined and not loop.last %} {% else %}
{% endif %}

{{ 'Commands run before the backup starts' if hook_type == 'pre' else 'Commands run after the backup completes' }}

Maximum time in seconds before the hook is killed. Set to 0 for no timeout. Default is 300 (5 minutes).

{{ 'Fail the entire job if this pre-hook fails (stops backup and all remaining tasks)' if hook_type == 'pre' else 'Fail the entire job if this post-hook fails (stops remaining post-hooks)' }}

{% if hook_type == 'post' %}

Execute this post-hook even if the backup or other tasks failed (useful for cleanup or notifications)

{% endif %}