This commit is contained in:
2021-04-16 00:26:57 +02:00
parent a45eee6009
commit 952334fecb
12 changed files with 50 additions and 69 deletions

View File

@@ -1,6 +1,8 @@
# 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.
If you want to perform some commands before and/or after a backup, you can use hooks.
They consist of a list of `before`/`after` commands that will be executed in the same directory as the target `from`.
```yml | .autorestic.yml
locations: