Backups that actually restore
A backup you have never restored is a hope, not a backup. Learn the 3-2-1 rule, why ransomware hunts backups, why sync is not backup - and find the copy that has quietly failed since March.
Ask any organisation whether it has backups and the answer is yes. Ask when it last restored one, start to finish, and the room goes quiet. Google’s SRE book puts it in one line: “No one really wants to make backups; what people really want are restores.”
3-2-1
The best-known rule is photographer Peter Krogh’s 3-2-1, from The DAM Book. A 2012 US-CERT paper, Data Backup Options, credits him and states it like this:
- 3 - “Keep 3 copies of any important file: 1 primary and 2 backups.”
- 2 - “Keep the files on 2 different media types to protect against different types of hazards.”
- 1 - “Store 1 copy offsite (e.g., outside your home or business facility).”
Each number answers a different disaster. Three copies survive one failing. Two kinds of media survive a fault that hits every disk of one kind, and one offsite copy survives losing the building.
- One copy is the original. It is the one that fails.
- A second copy on different media survives a dead disk or a corrupt file system.
- A third copy somewhere else survives fire, flood and theft. Today it should also be out of an attacker's reach.
- None of it counts until something has been restored from it. 3-2-1 says where copies live, not whether they work.
Ransomware goes looking for backups
The rule predates modern ransomware, which doesn’t just encrypt the files in front of it. The CISA and MS-ISAC #StopRansomware Guide warns that many ransomware variants try to find and delete or encrypt any backups they can reach. Its advice: “Maintain offline, encrypted backups of critical data”, because “it is important that backups are maintained offline.”
The guide also mentions immutable storage, which some cloud vendors offer and which can’t be changed or deleted for a set period, and adds a caution: “Use immutable storage with caution as it does not meet compliance criteria for certain regulations and misconfiguration can impose significant cost.”
A USB drive that’s always plugged in is reachable. So is a cloud backup whose admin password sits on the infected network. Distance doesn’t make a copy safe; reachability is what decides it.
Sync is not backup
A folder that syncs to the cloud feels like a backup, but it copies everything faithfully, including a deletion, an accidental overwrite, or a file the ransomware just encrypted, within seconds. A backup has history: you can go back to how things were before the mistake. That matters most for mistakes nobody notices for a week or two.
Try all of it on a small office. Tick the copies it keeps, then throw disasters at them. Run a restore drill too: one of these copies isn’t what it seems.
An office keeps its server, a USB drive that is always plugged in, and a cloud sync folder. Ransomware hits. What survives?
Offsite and different media protect against other disasters. Against ransomware the question is reachability: an attached drive and a sync folder are both reachable, and sync replicates the damage.
What is the only way to know a backup works?
The CISA guide says to regularly test the availability and integrity of backups, and AWS's DR whitepaper says a backup strategy must include testing your backups. A success message proves the job ran, not that the data can come back.
Everything above ran in your browser. Now try it in a real terminal: any Linux machine, a Mac's Terminal app, or Windows with WSL. Nothing to install beyond that.
Run a restore drill on your own machine. Record a checksum of every file, back up, “lose” the original, restore somewhere new, and prove the restored files match:
mkdir -p drill/data && cd drill
printf 'invoice 1\n' > data/invoice-1.txt
printf 'invoice 2\n' > data/invoice-2.txt
find data -type f -exec sha256sum {} + > checksums.txt # what "correct" looks like
tar -czf backup.tar.gz data # the backup
rm -rf data # the disaster
mkdir restore && tar -xzf backup.tar.gz -C restore # restore somewhere new
cd restore && sha256sum -c ../checksums.txt # every line must say OKThen break it on purpose. You are still inside restore, so step out, clear the old restore and replace the backup with junk:
cd .. && rm -rf restore && echo junk > backup.tar.gz
mkdir restore && tar -xzf backup.tar.gz -C restore # tar refuses: not in gzip format
cd restore && sha256sum -c ../checksums.txt # every line says FAILED open or readLeave out the rm -rf restore and mkdir fails, tar never runs, and the check passes against the files from the first restore - a drill that proves nothing. Seeing the failure in a drill is the whole point - better there than on the day you need it.
Sources
- US-CERT - Data Backup Options (Ruggiero and Heckathorn, Carnegie Mellon University, 2012) - the 3-2-1 rule
- CISA and MS-ISAC -
- Google SRE book - Data Integrity, What You Read Is What You Wrote
- AWS - Disaster recovery options in the cloud ("Your backup strategy must include testing your backups")
- Velero docs - Restore reference (restoring into a different namespace)
Missions and quizzes above earn their own XP. This marks the lesson done.