Skip to content

Latest commit

 

History

History
executable file
·
27 lines (22 loc) · 799 Bytes

File metadata and controls

executable file
·
27 lines (22 loc) · 799 Bytes

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

. . . . . . . . . . . . . . . . . . . . . . . .

  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"

. . . . . . . . . . . . . . . . . . . . . . . .