项目作者: gitiserver

项目描述 :
Basic script for backup directories
高级语言: Shell
项目地址: git://github.com/gitiserver/dir-backup.git
创建时间: 2021-08-21T07:31:19Z
项目社区:https://github.com/gitiserver/dir-backup

开源协议:

下载


Directory Backuper docker image

Backup&Compress a directory regularly.

Enviroments

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

Sample Docker-Compose file

  1. . . . . . . . . . . . . . . . . . . . . . . . .
  2. backuper:
  3. image: gitiserver/dir-backup:latest
  4. environment:
  5. DRIVER: "tar.gz"
  6. DURATION: "1d"
  7. COUNT: 5
  8. volumes:
  9. - "YourPathForBackup:/var/data:ro"
  10. - "backups_storage:/var/scripts/backup/backups"
  11. . . . . . . . . . . . . . . . . . . . . . . . .