Backup&Compress a directory regularly.
| Variable | Description |
|---|---|
| DRIVER | the backup compression method tar, tar.gz, tar.bz2, zip |
| DURATION | Linux sleep time format |
| COUNT | Number of last backup that must be saved to volume. if number become longer than this value the first created backup file will be removed |
. . . . . . . . . . . . . . . . . . . . . . . .
backuper:
image: gitiserver/dir-backup:latest
environment:
DRIVER: "tar.gz"
DURATION: "1d"
COUNT: 5
volumes:
- "YourPathForBackup:/var/data:ro"
- "backups_storage:/var/scripts/backup/backups"
. . . . . . . . . . . . . . . . . . . . . . . .