Skip to content

notflip/restic-backup-for-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restic backup for Coolify docker volumes

git clone https://github.com/notflip/restic-backup-for-docker.git restic
cd restic
cp restic.env.example restic.env
# Configure restic.env
cd
apt install bzip2 -y
curl -LO https://github.com/restic/restic/releases/download/v0.18.0/restic_0.18.0_linux_amd64.bz2
bzip2 -d restic_0.18.0_linux_amd64.bz2
chmod +x restic_0.18.0_linux_amd64
sudo mv restic_0.18.0_linux_amd64 /usr/local/bin/restic

Crontab

  • add to cronbtab 0 1 * * * cd /root/restic && /bin/bash ./restic-backup.sh >> /var/log/restic-backup.log 2>&1

Running

./restic-cmd.sh init` # to init new repository (make sure the last segment of the url is okay in the .env)
./restic-backup.sh # to test
./restic-cmd.sh snapshots # to test after backing up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages