This backup script uses Cloudflare R2 for backups.
- Add
backup.sh
to/root/backup.sh
:wget -O /root/backup.sh https://raw.githubusercontent.com/xthezealot/docker-setup/main/backup.sh && chmod +x /root/backup.sh
- Update
R2_BUCKET
,R2_ACCESS_KEY
,R2_SECRET_ACCESS_KEY
andR2_ACCOUNT_ID
- Add cron through
crontab -e
:0 3 */2 * * /root/backup.sh
- Check cron with
crontab -l