Linux Nerds All articles
Tutorials

Your Backup Isn't Real Until It Survives a Restore—A Weekend Audit for Linux Home Labs

Linux Nerds
Your Backup Isn't Real Until It Survives a Restore—A Weekend Audit for Linux Home Labs

Photo: Roy Want, CC BY-SA 4.0, via Wikimedia Commons

The uncomfortable truth about your backup job

A cron job that exits 0 is not a backup. It is a hope with a timestamp. Most home-labbers I know have some version of the same setup: a script, a USB drive, maybe a cloud bucket, and a vague belief that things are fine because nothing has exploded yet. That belief is not a recovery plan. A recovery plan is the thing you have tested.

The 3-2-1 rule still works in 2026: three copies of your data, on two different media, with one copy offsite. The part people skip is the proof. This weekend audit is about turning your backup from a rumor into a fact.

Start by admitting what you would actually miss

Before you touch a tool, list the data that would ruin your month if it vanished. For a typical Linux home lab that means Docker compose files, service configs, databases, SSH keys, photos, documents, VM images, and the notes you wrote when you set everything up. It does not mean /proc, a Steam library, or a cache directory you can rebuild in ten minutes.

Write that list down. If you cannot name it, you cannot restore it.

Pick restic or Borg and stop debating

Both are excellent. restic is easy to point at S3-compatible storage and has a clean check command. Borg is battle-tested, efficient, and pairs well with a local repo plus an offsite rsync.net or BorgBase target. Pick one and commit. The tool matters less than the routine.

A simple restic pattern:

restic init --repo sftp:[email protected]:/srv/restic/home-lab
restic backup /etc /home /srv /var/lib/[docker](https://en.wikipedia.org/wiki/Docker_(software))/volumes --exclude-caches

For Borg, the same idea applies: initialize a repo, run a create job, and keep the passphrase in a password manager. Encrypt everything. Do not rely on a cloud provider's bucket policy to save you from your own mistakes.

Make the offsite copy boring

Offsite does not have to mean expensive. Backblaze B2, Storj, rsync.net, and a friend's NAS over WireGuard all count. The point is that a flood, a theft, or a bad rm -rf in your basement does not take every copy with it. Use a separate credential for the backup target. If your home lab gets compromised, you do not want the attacker to have delete rights on your archive.

Automate verification, not just backup

This is where most setups lie. A successful upload is not a successful backup. Schedule a check:

The subset check catches bit rot and repository damage without reading every byte every time. Run a full read-data check quarterly if your repo is small enough. Pipe the output into healthchecks.io, Uptime Kuma, or a plain email. A silent backup is a suspicious backup.

Put the restore drill on your calendar

Once a quarter, restore something real. Not a single text file. Restore a database dump, a Docker volume, and a config directory into a scratch VM. Time it. Write down what broke. If you cannot remember the passphrase, the repo path, or the order of operations, you just found a failure before a drive did.

For a weekend audit, do a smaller version: pick three files at random from last month and restore them to /tmp/restore-test. Then restore one service directory and start it in a container. The goal is not drama. The goal is a boring, repeatable process.

A weekend checklist

  1. List critical data and exclude the junk.
  2. Create or confirm one encrypted repo.
  3. Add an offsite target with its own credentials.
  4. Schedule backup and check jobs with systemd timers or cron.
  5. Add monitoring that alerts on missed or failed runs.
  6. Restore three random files and one service.
  7. Document the recovery steps in your notes.
  8. Put the next drill on the calendar.

The trap: backups that only exist in your head

The most common failure is not a dead drive. It is a human who knows the system was backed up but never proved it. Your home lab is a hobby until it holds something you care about. Treat the backup like part of the lab, not a ritual you perform when you remember.

If your backup plan cannot survive a restore test, it is not a plan. It is a lie with good intentions. This weekend is a fine time to make it tell the truth.

All Articles

Related Articles

The 20-Minute Rebuild: Turn Your Dotfiles Into Real Infrastructure

The 20-Minute Rebuild: Turn Your Dotfiles Into Real Infrastructure

Renting a Router Is a Bad Deal—OpenWrt Is How You Stop Paying for Locked Firmware

Renting a Router Is a Bad Deal—OpenWrt Is How You Stop Paying for Locked Firmware

The GPL Is Hiding in Your Kitchen: Tracking Down Linux in the Gadgets You Own Right Now

The GPL Is Hiding in Your Kitchen: Tracking Down Linux in the Gadgets You Own Right Now