Add pre and post backup hooks

This commit is contained in:
Lucas Breton
2020-08-06 08:39:07 +02:00
committed by Tobias Kaupat
parent 23a05d88b9
commit 46df366e4c
2 changed files with 23 additions and 0 deletions
+9
View File
@@ -19,6 +19,15 @@ Latest (experimental)
docker pull lobaro/restic-backup-docker:latest
```
## Hooks
If you need to execute a script before or after each backup,
you need to add your hook script in the container folder `/hooks`:
```
-v ~/home/user/hooks:/hooks
```
Call your pre backup script `pre-backup.sh` and post backup script `post-backup.sh`
Please don't hesitate to report any issue you find. **Thanks.**
# Test the container