Skip to main content

Local Snapshot Plus Offsite Replication

This pattern combines three strengths:

  • rsync for a clean local "current" copy
  • restic for encrypted history
  • rclone for an offsite copy

If you already run rsync snapshots, Restic fits naturally on top.

Workflow

layered-backup.sh
# 1) local normalize
rsync -a --delete /srv/app/ /backup/app/current/

# 2) restic snapshot history
restic backup /backup/app/current --tag daily --host app-01

# 3) offsite mirror for additional disaster tolerance
rclone sync /backup/app/current remote-prod:backups/app/current

Why This Works

LayerWhat you getRestore impact
/backup/app/currentfastest local restorecopy back immediately
restic snapshotsrollback pointsrestore yesterday or pre-deploy
rclone offsitedisaster tolerancerestore even if the server dies

Benefits

  • Local restore speed from /backup/app/current
  • Historical recovery from restic snapshots
  • Secondary offsite copy for regional or repository failure events