Backups, and what "verified by restore" means

ShippedWorks today.

Every book's full history and our own account database are copied to separate storage nightly, and each copy is proved by restoring it — because a backup nobody has restored is a hypothesis.

What is copied, and when

Nightly at 03:17 UTC, plus on demand. Two kinds of artifact:

  • Every book’s ledger, with its full history, not just the current state. Every change, what it was, and the note that came with it.
  • Our account database — the accounts, books and plans that finkpr keeps about you.

Both go to private storage that is separate from where your book and our service run, and each copy carries a record of its checksum, where it came from, and — for a book — whether the book balanced at the moment it was taken.

The odd minute is deliberate. Scheduled jobs queue, and the top of the hour is the most contended slot, so a job on :00 is the one that gets delayed or dropped.

What “verified by restore” means

It means the nightly job does not stop at “the upload returned 200”.

For a book, the copy is downloaded, its checksum compared with the record, and then it is restored — and the latest change and the number of changes are compared with what was recorded. Restoring rather than only checking the file, because restoring is what someone actually recovering their books would do.

For the database, the copy is checked for integrity and the number of records in it is compared with the record. That second check is the whole lesson:

A naive copy of the live database was measured against production and produced a file that lost six of seven users, six of seven memberships and five of six books — and reported itself perfectly healthy. An integrity check asks whether a file is well-formed, and a truncated one is.

An integrity check is not a restore. A checksum is not a restore. A restore is a restore, and it runs every night.

Retention

Nothing is ever pruned. There is no lifecycle rule on the bucket and neither script issues a delete. A book’s backups accumulate from the day it was first taken, at roughly a few hundred kilobytes each.

This is deliberate rather than lazy. Deleting a backup when its book row disappears would mean destroying a customer’s only copy held elsewhere in the same request that deleted their book — so the rule is: never.

Why deleting a book refuses

We will not delete a book unless we can confirm that its ledger exists somewhere else. Today we cannot: the check we ask returns “cannot be confirmed” for every book, without exception, so a delete request is refused.

That is not the same sentence as “there is no copy elsewhere” — the nightly backup demonstrably writes one and has been restore-verified. The check simply cannot see it yet, and the refusal says “cannot be confirmed” rather than pretending otherwise.

What there is not

No self-service restore. You cannot roll your own book back from a page. The restore tooling downloads and verifies; putting a copy back in place of a live book is a deliberate human act, and today that human is us. Email support@finkpr.com.

No point-in-time recovery between snapshots. The nightly bundle is the granularity of the backup — though within a book, every change is kept and history is far finer than a day.

No backup with history you can take yourself yet. /export in the chat hands you the book as it stands, but nothing hands you its history — #48, and it is the honest gap on this page.

No cross-region replication you can choose, and no per-book retention setting. There is one policy and it applies to everyone.

Something here wrong or missing? Put it on the board — it is public, and the reply is in the thread.