Homelab14 October 20265 min read

Restic to a second box: backups I have restored from

Two hosts back up every night to an old machine in another room. The part that matters is the restore, so I tested that on a blank disk.

Verdict
Worth it. One binary, encrypted repositories, restores that work.
Cost
Free software. A second machine and one large disk.
Licence
restic: BSD 2-Clause.
What I tested
Nightly backups of two hosts, pruning old snapshots, and a full restore to a blank disk.

Sample post: written to show the layout of a homelab post. The setup is a common one; the details are sample text until Lance publishes his own.

The platters and read arm of an opened hard disk

The setup

The second box runs restic’s REST server in append-only mode, so a compromised host can add snapshots but cannot delete old ones. Each host has its own repository and its own password, kept in my password manager and on paper.

restic -r rest:http://backup.lan:8000/host1 backup /etc /home /srv \
  --exclude-caches --one-file-system

A systemd timer runs it at night. Pruning runs on the backup box itself, weekly, keeping seven daily, four weekly and twelve monthly snapshots.

The restore drill

Backups you have never restored are a hope, not a plan. I wiped a spare disk, installed the same Debian release, restored /etc and /srv, and started the services. The written steps are now in the repository next to the scripts.

restic beside the usual alternatives

The three tools I see most in home labs, compared on what decided it for me.

resticBorgBackuprsync with hard links
LicenceBSD 2-ClauseBSD 3-ClauseGPL 3
EncryptionAlways onOn by default; several modesNone; add it yourself
DeduplicationYes, across all snapshotsYes, across all archivesUnchanged files only, by hard link
TargetsLocal disk, SFTP, S3-style storage, its own REST serverLocal disk, SSH (Borg on the far side)Local disk or SSH
Restore one filerestic restore or mount the repositoryborg extract or mount the archiveCopy it back
VerdictMy pick: one binary, many targetsJust as good if both ends run BorgFine until you need encryption

Licences checked against each project’s repository.

What I would change

The backup box sits in the same house. A second copy to cheap object storage, also with restic, is next on the list.

Read the other posts or email me about this one.