The Golden Rule: 3-2-1

Backup strategies

Every resilient storage plan follows the 3-2-1 rule:

  • 3 copies of your data (one primary copy plus two backups).
  • 2 different storage media or devices.
  • 1 copy stored off-site away from your home or office.

Hardware fails, power surges damage drives, ransomware encrypts mounted shares, and house fires destroy local equipment. Having three copies across two media types with one copy off-site keeps a single fault from turning into permanent loss.

What Needs Backing Up?

Not every file justifies off-site bandwidth or long retention. Sort data into four tiers:

PriorityExamplesBackup FrequencyRetention
CriticalPhotos, tax records, passwords, personal documentsReal-time or dailyIndefinite
ImportantActive codebases, projects, configuration filesDaily1+ year
ReplaceableMedia libraries, OS ISOs, installersWeekly or excluded90 days
DisposableCaches, temporary files, build artefactsNeverNone

Backup Software Compared

Restic: Modern Cross-Platform Standard

Restic encrypts every snapshot client-side and deduplicates blocks before upload, supporting local disks, SFTP servers, and S3-compatible object storage.

Strengths:

  • Built-in AES-256 encryption.
  • Block-level deduplication that reduces repeated uploads.
  • Supports local drives, NAS shares, SFTP, Backblaze B2, and Wasabi.
  • Single static binary with minimal dependencies.

Basic daily backup:

# Initialise a repository (once)
restic -r /mnt/backup/restic-repo init

# Take a snapshot
restic -r /mnt/backup/restic-repo backup /home/user/documents

# Prune old snapshots (keep 7 daily, 4 weekly, 6 monthly)
restic -r /mnt/backup/restic-repo forget \
  --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --prune

BorgBackup: Space-Efficient Archiver

BorgBackup (Borg) pairs block deduplication with fast compression (lz4 or zstd) and supports append-only remote repositories so a compromised client cannot wipe older snapshots.

Duplicati: Web Interface Option

For administrators who prefer managing schedules and cloud targets in a browser, Duplicati runs neatly inside Docker with encrypted destination volumes.

Off-Site Backup Options

Check current provider pricing calculators before choosing a target, as storage and egress fees change periodically.

ServicePricing ModelProtocolBest For
Backblaze B2Pay per GB stored plus egressS3-compatibleLarge encrypted archives
WasabiPay per GB stored (no egress fee, min retention applies)S3-compatibleFrequent restores
Hetzner Storage BoxFixed monthly capacity tiersSFTP, SMB, rsyncEuropean data residency
Second NAS (friend or family)One-time hardware outlayrsync, Syncthing, TailscaleFull local control
Encrypted USB drive off-siteOne-time drive purchasePhysical swapAir-gapped cold copy

Automating Backups

Manual backups get forgotten. Schedule unattended runs via cron or systemd timers.

Cron and Restic Example

# /etc/cron.d/daily-backup
0 3 * * * root /usr/local/bin/restic -r sftp:backup-server:/repo backup /home --quiet
0 4 * * 0 root /usr/local/bin/restic -r sftp:backup-server:/repo forget --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --prune --quiet

Systemd Timer Alternative

# /etc/systemd/system/backup.service
[Unit]
Description=Daily Restic Backup

[Service]
Type=oneshot
ExecStart=/usr/local/bin/restic -r sftp:backup-server:/repo backup /home
# /etc/systemd/system/backup.timer
[Unit]
Description=Run backup daily at 03:00

[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true

[Install]
WantedBy=timers.target

Testing Restores

An untested backup is an assumption. Run a quick restore check monthly:

  1. Select a random file or folder from an older snapshot.
  2. Restore it to /tmp/restore.
  3. Confirm file integrity and checksum against the source.
  4. Record the test date in your maintenance log.
# Verify backup integrity
restic -r /mnt/backup/restic-repo check

# Restore a specific file
restic -r /mnt/backup/restic-repo restore latest --target /tmp/restore --include "/documents/important.pdf"

NAS-Specific Backup Tools

Synology and QNAP appliances include built-in backup suites:

  • Synology Hyper Backup: Scheduled, versioned, encrypted backups to USB drives, remote NAS units, or cloud buckets.
  • Synology Snapshot Replication: Fast point-in-time BTRFS snapshots (useful against accidental deletion, though local to the NAS unless replicated off-site).
  • QNAP Hybrid Backup Sync: Multi-target backup and sync over SFTP, SMB, and S3.

Long-Term Archival

For records kept across decades:

  • Prefer open formats: PDF/A, PNG, FLAC, and plain UTF-8 text remain readable without proprietary licences.
  • Store SHA-256 checksums: Detect silent bit rot before copying archives onward.
  • Add a plain README: Document directory layout and decryption steps.
  • Refresh hardware: Migrate spinning disks and SSDs every three to five years; consider archival optical media such as M-DISC for compact immutable sets.

Product links may include affiliate partnerships. See our affiliate disclosure for details.