Pre/Post Job Hooks

Hook Configuration

Pre-job hooks run before the backup starts. Post-job hooks run after the backup completes. Commands execute with the same privileges as the Borgitory service.

🔄 Pre-Job Hooks

{% for hook in pre_hooks %} {% set hook_type = "pre" %} {% set index = loop.index0 %} {% include "partials/schedules/hooks/hook_field_modal.html" with context %} {% endfor %} {% if not pre_hooks %}

No pre-job hooks configured

Click "Add Pre-Hook" to get started

{% endif %}

✅ Post-Job Hooks

{% for hook in post_hooks %} {% set hook_type = "post" %} {% set index = loop.index0 %} {% include "partials/schedules/hooks/hook_field_modal.html" with context %} {% endfor %} {% if not post_hooks %}

No post-job hooks configured

Click "Add Post-Hook" to get started

{% endif %}