Clarify documentation/schema about on_error hook running if there's an error in another hook (#202).

This commit is contained in:
Dan Helfman
2019-07-19 09:25:01 -07:00
parent 7ad8f9ac6f
commit e25f2c4e6c
2 changed files with 7 additions and 5 deletions
@@ -27,13 +27,13 @@ not if an error occurs in a previous hook or in the backups themselves.
## Error hooks
borgmatic also runs `on_error` hooks if an error occurs. Here's an example
configuration:
borgmatic also runs `on_error` hooks if an error occurs, either when creating
a backup or running another hook. Here's an example configuration:
```yaml
hooks:
on_error:
- echo "Error while creating a backup."
- echo "Error while creating a backup or running a hook."
```
## Hook output