A minimal backup routine with restic

My backup routine has three parts: a nightly snapshot, a weekly prune, and a restore test once a month. The restore test is the part people skip.

restic makes the first two a pair of one-line systemd timers. I keep the repository password in a root-only file and pass it with --password-file.

Retention is seven daily, four weekly and six monthly snapshots. For a few gigabytes of configuration and small databases, the repository stays under twice the size of the live data.

The monthly test restores one directory to /tmp and compares it with diff -r. It takes two minutes and has caught one misconfigured exclude so far.