Update README.md

pull/23/head
Nicco 5 years ago committed by GitHub
parent 2f0092befe
commit f7a15c6d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -201,6 +201,25 @@ backends:
... ...
``` ```
### Before / After hooks
Sometimes you might want to stop an app/db before backing up data and start the service again after the backup has completed. This is what the hooks are made for. Simply add them to your location config. You can have as many commands as you wish.
```yaml
locations:
my-location:
from: /data
to:
- local
- remote
hooks:
before:
- echo "Hello"
- echo "Human"
after:
- echo "kthxbye"
```
## Contributors ## Contributors
This amazing people helped the project! This amazing people helped the project!

Loading…
Cancel
Save