Skip to content

Best practices for Hooks? #600

Answered by garethgeorge
jwyse asked this question in Q&A
Discussion options

You must be logged in to vote

This is a good question

  • Plan level hooks are triggered by backup and forget operations
  • Repo level hooks are triggered by any plan level operations running on the repo + prune and check operations

If you're wanting notifications for system health events you should have those hooks configured at the repo level.

The easiest way to move them might be to just stop backrest and manually edit the config, you can copy the json "hooks" section from your plans to your repos if you're comfortable editing the file -- the field name and properties are the same.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by garethgeorge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants