mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-08-04 03:42:17 +00:00
Add pre and post backup hooks
This commit is contained in:
committed by
Tobias Kaupat
parent
23a05d88b9
commit
46df366e4c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user