Bottom line: 3-2-1 means three copies, two media, one offsite. Restic to B2 covers the offsite leg with client-side encryption and cheap storage; two local copies on different media cover the rest. The plan fails at the restore drill, not at the upload — so the drill is the deliverable.

The shape

Copy Media Where
Primary SSD workstation
Secondary HDD, offline shelf
Offsite B2 via restic remote

Two copies on the same NAS is one medium and does not count.

Repository with encryption

1
2
3
4
export RESTIC_REPOSITORY="b2:bucket:hostname"
export RESTIC_PASSWORD_FILE=/root/.restic-pass
restic init
restic backup /home /etc --exclude-caches --tag daily

The password lives on the machine and in a sealed note off the machine. Losing it loses the repository — B2 cannot help.

Retention

1
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --prune

Prune monthly, not weekly: it rewrites packs and costs egress. B2 egress is free up to 3× stored volume per month, so weekly prunes eat the allowance.

The offline leg

rsync to an external HDD that is unmounted except during the job, and rotated off-site monthly. A permanently mounted USB disk shares the enclosure, the PSU and the power surge with the machine.

The drill

Monthly, in a scratch directory:

1
2
restic restore latest --target /tmp/restore-test --include /home/user/docs
diff -r /home/user/docs /tmp/restore-test/home/user/docs | head

Then count files against the manifest. A restore that completes without error and yields the wrong count is the failure that only the drill catches.

Monitoring

Alert on: last snapshot older than 26 h, repository size change over 40% in a day, and any non-zero exit from the backup timer. A backup that silently stopped is far more common than one that silently corrupted.

Operating notes

Three copies, two media, one offsite. Two copies on the same NAS is one medium and does not count.

1
2
3
export RESTIC_REPOSITORY="b2:bucket:host" RESTIC_PASSWORD_FILE=/root/.restic-pass
restic backup /home /etc --exclude-caches --tag daily
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --prune

Prune monthly: it rewrites packs, and B2 egress is free only to 3× stored per month.

The offline leg

rsync to an external HDD, unmounted except during the job, rotated off-site monthly. A permanently mounted USB disk shares enclosure, PSU and surge with the machine.

Password custody

The repository password lives on the machine and in a sealed note off it. Losing it loses the repository; B2 cannot help.

The drill is the deliverable

Monthly restore into scratch, then diff -r and a file count against the manifest. A restore that completes cleanly with the wrong count is the failure only the drill catches.

FAQ

How often should I run restic forget with –prune?

Prune monthly, not weekly. Pruning rewrites packs and costs egress, and B2 egress is free only up to 3× stored volume per month. Weekly prunes eat that allowance.

What happens if I lose the restic repository password?

You lose the repository, and B2 cannot help. The password lives on the machine and in a sealed note off the machine. Keep both, because client-side encryption means the provider has no way to recover your data.

Why doesn’t a second copy on the same NAS count toward 3-2-1?

Because it is one medium. The rule requires three copies on two different media with one offsite. Two copies on the same NAS fail the two-media requirement, so the secondary copy needs a different medium, such as an external HDD.

How do I verify a restic restore actually worked?

Restore into a scratch directory monthly, then run diff -r against the source and count files against the manifest. A restore that completes without error but yields the wrong count is the failure only the drill catches. The drill is the deliverable, not the upload.

What should I monitor to know backups are still running?

Alert on three things: last snapshot older than 26 hours, repository size change over 40% in a day, and any non-zero exit from the backup timer. A backup that silently stopped is far more common than one that silently corrupted.