Field Notes

2026-09-14

Backing up a small home server with restic

The home server holds photos, a few databases and configuration I would hate to rebuild. The setup below has survived two disk replacements.

Layout

/srv/data      -> daily, kept 14 days
/etc, /root    -> daily, kept 30 days
databases      -> dump first, then back up the dump

Dumps are taken by a systemd timer ten minutes before the backup timer, which keeps the snapshot consistent without stopping services.

Checks that matter

A backup is only real once it has been restored. Once a month a script restores a random directory into a scratch location and compares checksums. The output goes to the same mailbox as SMART reports.

← All notes