Backups: the checks that matter are the ones nobody runs
A restoration drill is the only backup that has ever saved anyone. How to run one in an afternoon, and the three failures it will find.
4 min read
I’ve never once been called to a “restore the backup” incident where the backup was the problem. In every case the backup existed, was current, and had never been used.
The three failures you will find
1. The backup includes what you thought, but not what you need
The nastiest failure is a backup that contains the database, the config, and the application, and none of the uploaded files. Because uploads were on a different filesystem, on a different mount, added by a different developer, six months after the backup policy was written.
Write down what “restore” means before you write what to back up. Recovery objective first: how much data can you afford to lose, and how long can you be down?
2. It restores, but slowly enough to matter
A 40 GB restore over a consumer uplink took eleven hours. The team had a four-hour recovery target. The backup was technically fine and completely useless.
Measure restore throughput, not backup success. pv on a decompressed stream
gives you the number that actually matters.
3. It restores, but not to a working state
This is the one that finds me the most. The database comes back. The application then cannot start, because the secrets were never part of the snapshot, or the migration that ran last month was not in the deployment artefact, or the file permissions assumed a user that no longer exists.
An afternoon drill
- 01
Pick the smallest restore point that counts
Usually "the last week". Restoring a year-old snapshot proves you can read a file.
- 02
Restore to something isolated
A spare VM or a container on the existing hypervisor. Never over production, never "just to check".
- 03
Restore config and secrets separately
Secrets come from a password manager, not the backup. If they came from the backup, that is a finding.
- 04
Start the app and run a real check
Log in, read a record, submit a form. Not a health endpoint, a health endpoint lies.
- 05
Time every step, write it down
The timeline is the deliverable. The restore is just the method of producing it.
Script the boring part so you actually run it
Manual drills do not happen. This is a skeleton; adapt the checks to your stack.
#!/usr/bin/env bash
set -euo pipefail
TARGET_HOST="${1:?usage: drill.sh <restore-host>}"
START=$(date +%s)
echo "→ fetching artefacts"
scp ./backup-$(date -u +%F).tar.gz "${TARGET_HOST}:/var/tmp/"
ssh "${TARGET_HOST}" 'cd /var/tmp && tar xzf backup-*.tar.gz'
echo "→ restoring database"
ssh "${TARGET_HOST}" 'sudo systemctl stop app && sudo -u postgres psql -f /var/tmp/db.sql app'
echo "→ fetching secrets from vault"
ssh "${TARGET_HOST}" 'sudo vault read -field=env secret/app/prod > /etc/app/env'
echo "→ starting app"
ssh "${TARGET_HOST}" 'sudo systemctl start app && sleep 8 && systemctl is-active --quiet app'
echo "→ functional check"
ssh "${TARGET_HOST}" 'curl -fsS https://localhost/health/real >/dev/null'
END=$(date +%s)
echo "✓ drill complete in $(( END - START ))s, log it"
Recovery objectives, in plain terms
Two numbers decide what your backup design has to look like, and both are business decisions rather than technical ones.
Recovery point objective. How much data can you afford to lose? If the answer is “an hour”, you need something running at least hourly. If it is “a day”, a nightly job is honest. The mistake is accepting a nightly backup when the business would really say fifteen minutes if you asked them properly.
Recovery time objective. How long can you be down? This is the one that usually exposes the gap, because it is the number nobody has tested against. If the objective is four hours and the restore takes eleven, you do not have a backup problem, you have an untested assumption, which is worse, because it has been signed off.
“We do not have time for a drill”
This is the objection every time, and it is worth answering with arithmetic rather than an argument.
A drill costs one engineer for half a day, four times a year. The last restore incident I was called into ran for thirty-one hours across two teams and included six hours of finding out that the runbook referenced a system that had been decommissioned the previous year.
Two days of engineering a year against thirty-one hours of incident, once. The drill is not the expensive option; it is the affordable one that looks optional because the alternative is invisible until it happens.
What the timeline becomes
The output of the drill is not a pass or a fail. It is a document with per-step timings and a list of everything you had to fix by hand, and that document does three useful things.
It becomes the recovery objective you can honestly promise. It becomes an automation backlog, because every manual fix is a candidate for scripting. And it becomes the evidence that turns a vague concern into a funded piece of work, “the restore takes eleven hours” is a decision, “backups might be a risk” is not.
What to log every time
Total wall-clock time, per-step timings, anything you had to fix manually, and every assumption that turned out to be wrong. After three drills the manual fixes become the automation backlog, and the timeline becomes the recovery objective you can actually promise a client.
The same discipline applied to incident response is in runbooks nobody follows, and the moment you hand a working system to somebody else is the close-out post.
If you have never restored your backups to a clean environment, get in touch and we can design the drill.
On this page
Related reading
A practical cybersecurity and DR checklist
Access control, backups, patching, incident response and DR drills: the operational checks a small IT team can actually run, not the policy version.
3 min read
Building a Fully Automated Daily Content Pipeline
Scheduled GitHub Actions, object storage, Playwright for images, ffmpeg for video and an API to post, the shape of a daily pipeline that runs unattended.
3 min read
Supporting the Nepali (BS) Calendar in Business Software
Bikram Sambat is not a display format. How it changes date storage, period boundaries, fiscal years, reports, and the cases that only bite at year end.
3 min read