Skip to content

gitiserver/dir-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 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"

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

About

Basic script for backup directories

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •