Overview Hooks Exluding Files Forget Policy Cron Docker Volumes
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.
1locations:
2 my-location:
3 from: /data
4 to: my-backend
5 hooks:
6 before:
7 - echo "Hello"
8 - echo "Human"
9 after:
10 - echo "kthxbye"