|
@@ -57,10 +57,10 @@ tests](https://torsion.org/borgmatic/docs/how-to/extract-a-backup/).
|
|
|
|
|
|
## Error hooks
|
|
|
|
|
|
-When an error occurs during a backup, borgmatic can run configurable shell
|
|
|
-commands to fire off custom error notifications or take other actions, so you
|
|
|
-can get alerted as soon as something goes wrong. Here's a not-so-useful
|
|
|
-example:
|
|
|
+When an error occurs during a backup or another action, borgmatic can run
|
|
|
+configurable shell commands to fire off custom error notifications or take
|
|
|
+other actions, so you can get alerted as soon as something goes wrong. Here's
|
|
|
+a not-so-useful example:
|
|
|
|
|
|
```yaml
|
|
|
hooks:
|
|
@@ -91,9 +91,10 @@ here:
|
|
|
* `output`: output of the command that failed (may be blank if an error
|
|
|
occurred without running a command)
|
|
|
|
|
|
-Note that borgmatic does not run `on_error` hooks if an error occurs within a
|
|
|
-`before_everything` or `after_everything` hook. For more about hooks, see the
|
|
|
-[borgmatic hooks
|
|
|
+Note that borgmatic runs the `on_error` hooks for any action in which an error
|
|
|
+occurs, not just the `create` action. But borgmatic does not run `on_error`
|
|
|
+hooks if an error occurs within a `before_everything` or `after_everything`
|
|
|
+hook. For more about hooks, see the [borgmatic hooks
|
|
|
documentation](https://torsion.org/borgmatic/docs/how-to/add-preparation-and-cleanup-steps-to-backups/),
|
|
|
especially the security information.
|
|
|
|