Reliability

A backup is not a backup until you have restored one

Why we build every client system with a second, independent copy — and why the restore button is the part that has to be tested.

CodePOV Technology6 min read

The worst data loss we are called about is almost never a hacked server. It is someone with legitimate access deleting the wrong row, a sync script treating an empty response as "delete everything", or a spreadsheet that somebody tidied up.

One copy is not a backup

A single database with daily snapshots fails the moment the deletion happens inside it and nobody notices for a week. A single spreadsheet export fails when that spreadsheet is the thing somebody edits by hand. Independence is what makes a copy useful: different service, different credentials, different failure mode.

Delete should mean "hidden", not "gone"

Every destructive action in a business system should first write what the record looked like before. We keep a version history per record and a tombstone on delete, so recovering yesterday's accidental deletion is a button rather than a support ticket. The record stays recoverable until somebody with the right role explicitly purges it.

Never let a sync delete what it cannot see

The most expensive bug in this area is a reconciliation job that reads an empty or failed response and concludes that the source is empty. If the source returns nothing, that is an error to report, not an instruction to wipe the backup. Syncs should be additive by default and only remove data when a human confirms it.

Checksums turn "it ran" into "it worked"

A job that reports success because an API returned 200 proves very little. Hash the record you wrote, store the hash with the backup entry, and compare it on the next verification pass. That is how you learn about silent truncation and partial writes before you need the data.

The restore drill

Write this down and do it on a schedule:

  1. Pick a record at random from last month.
  2. Delete it in a staging copy.
  3. Restore it from the backup, using only the documentation.
  4. Compare it to the original, field by field.
  5. Time the whole thing, and write down what was confusing.

If step three needs a developer, the restore is not finished — it is a plan.

What we ship by default

Primary database as the source of truth; a second, independent record copy; files in private storage with a registry entry that records size and checksum; an append-only journal of every backup and recovery event; and a dashboard that says plainly when the last verification ran and what it found. Recovery is part of the product, not an operational afterthought.

  • Backup
  • Firebase
  • Google Sheets
  • Reliability