Skip to content

shabane/dir-backup-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

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

Releases

No releases published

Packages

 
 
 

Languages

  • Shell 85.1%
  • Dockerfile 14.9%