From bdc26f2117658875d24be5e8475bba33e0677f53 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 22 Apr 2022 19:58:28 -0700 Subject: [PATCH] Add note about old, pre-1.6.0 hooks behavior. --- docs/how-to/add-preparation-and-cleanup-steps-to-backups.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md b/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md index 130479356..9a64ac151 100644 --- a/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md +++ b/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md @@ -32,6 +32,8 @@ The `before_backup` and `after_backup` hooks each run once per repository in a configuration file. `before_backup` hooks runs right before the `create` action for a particular repository, and `after_backup` hooks run afterwards, but not if an error occurs in a previous hook or in the backups themselves. +(Prior to borgmatic 1.6.0, these hooks instead ran once per configuration file +rather than once per repository.) There are additional hooks that run before/after other actions as well. For instance, `before_prune` runs before a `prune` action for a repository, while