Writing / 17 Sep 2025

Boring backups are the point

A backup is not a copy. It is a restore you have already tested, on a day when nothing was on fire.

Backups are one of the few parts of a system that are judged entirely by their worst day. Nobody notices them when they work. When they fail, the failure is usually discovered at the same moment as the incident they were supposed to prevent.

The fix is not a more clever backup tool. It is a boring routine that you have already practiced.

A copy is not a backup

A file copied to another directory on the same disk is a copy. A snapshot on the same storage array is a very fast undo button. Neither one survives a lost filesystem, a stolen machine, or a bad rm with the wrong variable.

A backup has to be somewhere else, in a format you can restore without the original system, and recent enough to be useful. The old 3-2-1 summary still works:

  • three copies of the data;
  • two different media or systems;
  • one copy off-site.

For a small setup, “off-site” can be a cheap object-storage bucket or a machine at a friend’s house. It does not need to be glamorous. It needs to be independent.

Snapshots are not retention

Snapshots are useful for the last hour. They are not a retention policy. If the filesystem is corrupted, the snapshot may be corrupted too. If the machine is lost, the snapshots are lost with it.

Keep a separate backup schedule with its own retention. Something like:

  • hourly snapshots for the last day;
  • daily backups for two weeks;
  • weekly backups for three months;
  • monthly backups for a year.

Adjust the numbers to the data. The important part is that the schedule is written down and that the pruning rule does not delete the only copy you have.

Encrypt before it leaves

Backups contain the most sensitive version of your data: everything, unredacted, often including secrets that were supposed to be temporary. Encrypt them before they leave the host, and keep the key somewhere that is not the host.

restic is a good default for small systems because it handles encryption, deduplication, and retention in one binary:

restic init --repo /mnt/backup/slowpacket
restic backup --repo /mnt/backup/slowpacket /etc /srv /home
restic check --repo /mnt/backup/slowpacket
restic forget --repo /mnt/backup/slowpacket \
  --keep-daily 14 --keep-weekly 12 --keep-monthly 12 --prune

The exact flags matter less than the habit. Run check on a schedule; a repository that has never been checked is a hope, not a backup.

Test the restore

This is the part that separates a backup from a ritual. Once a quarter, restore something real into a temporary directory and open it:

restic restore latest --repo /mnt/backup/slowpacket \
  --target /tmp/restore-test --include /srv/app/config

Check that the files are there, that permissions are sane, and that the application can read them. Time the restore. Write down what was missing. A restore that takes six hours is a different recovery plan than one that takes twenty minutes, and you want to know which one you have before the outage.

Monitor the boring part

A backup that silently stops is worse than no backup, because it removes the worry without removing the risk. Export at least:

  • the time of the last successful backup;
  • the size of the repository;
  • the result of the last check;
  • free space on the backup target.

Alert on absence, not just failure. The most common failure is not an error message; it is a job that never ran.

Write it down

The runbook should fit on one page:

  • where the repository is;
  • where the key is;
  • how to list snapshots;
  • how to restore a single file;
  • how to restore a whole host;
  • who to call if the key is lost.

If the answer to the last question is “nobody”, the backup is not finished.

Boring backups are the point. The interesting ones are the ones you hear about in incident reviews.