Install sudo wget -O /usr/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v3.1.0/duplicacy_linux_x64_3.1.0 chmod +x /usr/bin/duplicacy # Optional echo "alias dup='duplicacy'" >> ~/.config/fish/config.fish or echo "alias dup='duplicacy'" >> ~/.zshrc Init & Password Setting cd /data/docker/ # Init duplicacy init docker b2://duplicacy-docker-backups # Add backblaze secret information duplicacy set -storage b2://duplicacy-docker-backups -key b2_id -value <your-b2-id> duplicacy set -storage b2://duplicacy-docker-backups -key b2_key -value <your-b2-key> Backup duplicacy backup -stats Restore duplicacy list duplicacy restore -r 189 <revision id> Cron Job vim /root/.backups/duplicacy-backups.sh ----- #!/bin/sh cd /data/Docker/ echo "`date -Iseconds`" Starting backup $PWD . sudo duplicacy -log backup -stats echo "`date -Iseconds`" Backup $PWD finished. ----- crontob -e ----- 30 3 * * * /root/.backups/duplicacy-backups.sh > /root/.backups/logs/duplicacy-backups_`date "+\%Y-\%m-\%d-\%H-\%M"`.log 2>&1 ----- Prune # For backups older than 30 days, keep one backup every 7 days duplicacy prune -keep 7:30