Skip to content

Solteq/borg-client-cron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BorgBackup

Docker Container for the BorgBackup to be used as backup client with timed cron jobs

Dockerfile contains the following

Running

Run this container, mount the SSH keys from /root/backup which contains .ssh folder with config and actual keys, mount the /data/file from data_files volume and back up the /data folder to remotebackup destination that is configured in the SSH configuration mounted.

Keep 14 daily backups, 5 weekly backups and 12 monthly backups and run the backup job daily at 03.15.

docker run \
	--detach \
	--restart 'unless-stopped' \
	--volume '/root/backup:/root'
	--mount 'source=data_files,target=/data/file' \
	--env BORG_REPO="remotebackup:/home/datafiles/repository.borg" \
	--env BORG_PASSPHRASE="secret_pass" \
	--env BORG_SOURCES="/data" \
	--env BORG_KEEP="14 5 12" \
	--env CRON="15 03 * * *" \
	solteqmagento/borg-client-cron

About

BorgBackup client with cron daemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 69.5%
  • Dockerfile 30.5%