Branches (1)

main (default)

03575a7 Add backup hooks

Click to expand commit body
Support backup-specific _pre_hooks and _post_hooks config keys with normal most-specific override semantics. Pre-hooks run before restic backup and can stop the backup; post-hooks run after restic is attempted and receive restic outcome environment variables.

Supervise restic as a child process so post-hooks can run while preserving restic exit codes, workdir handling, and interactive terminal behavior. Document hook usage and status mapping in the examples.

Amolith created