The DR toolkit: backups, point-in-time recovery, and multi-zone/multi-region deployment
coreintermediateDisaster recovery is not one technique — it is a small toolkit of mechanisms, each protecting against a different failure blast radius, and a real DR strategy usually combines several. Backups are a copy of data taken at a point in time and stored somewhere independent of the live system, so a bad deploy, a bug that corrupts rows, or outright deletion can be undone by restoring from before it happened. Point-in-time recovery (PITR) is a refinement of backups: instead of only being able to restore to the moment of the last full snapshot, a continuous log of changes (write-ahead log, binlog, oplog) lets you restore to any specific second — critical when the disaster is "we discovered the corruption six hours after it happened" rather than "the whole server died." Replication (covered in depth in §22 — primary/replica, sync vs. async) keeps a second live copy up to date in near-real-time, protecting against hardware failure but not against corruption or deletion that replicates just as faithfully as good data. Multi-zone deployment spreads instances across a cloud provider's availability zones (independent power, cooling, and networking within one region) so a single data-center-level failure does not take the whole system down. Multi-region strategies go further, keeping a fully separate copy of the system in a geographically distant region, protecting against a failure that takes out an entire region — the rarest and most expensive failure to defend against, reserved for the highest-stakes systems.
Think of it as
Think of it as concentric rings of protection, each guarding against a bigger blast radius than the last. Backups and PITR are the innermost ring — like a "restore previous version" button on a document, protecting against your own mistakes (bad data, bad deploys, accidental deletes). Replication is the next ring out — a hot spare copy of the machine itself, protecting against one server dying, but it will faithfully copy a corrupted document too, which is why it does not replace backups. Multi-zone is the next ring — like having that hot spare in a different building on the same campus, so a fire in one building doesn't take out both copies. Multi-region is the outermost, most expensive ring — a hot spare in a different city entirely, for the disaster where the whole campus is unreachable. Nobody needs every ring for every system; the point of DR planning is choosing how many rings a given system's failure cost actually justifies.
What we're doing: Trace which DR mechanism actually recovers a system from three different failures.
- 6
- Point-in-time recovery is the only tool here — replication actively worked against recovery by copying the bad data everywhere, faster than a human noticed.
- 11
- This is exactly what replication is for — fast failover to a hot copy, no backup restore needed or wanted.
- 17
- A DR plan that stopped at "we have replicas" fails here if those replicas share a failure domain with the primary — multi-zone spreads them so one zone-level event cannot take out both.
Why this works: The three failures need three different tools from the same toolkit — showing why "we have backups" or "we have replication" alone is never a complete answer; the failure determines which ring of protection actually recovers the system.
Treating replication as a substitute for backups
Wrong
Better
What you see: A bad deploy corrupts data at 2pm; by 2:00:03pm the synchronous replica has faithfully copied the exact same corruption. The team discovers the plan's "disaster recovery" was only ever hardware-failure recovery — there is no snapshot or change log to restore from, so the corrupted state is now the only state that exists anywhere.
Why: Replication's entire value is copying changes quickly and faithfully — which is precisely why it cannot distinguish a good write from a bad one. Backups (with PITR) are the only mechanism in the toolkit that preserves a prior, pre-corruption state on purpose; skipping them because "we already replicate" conflates two tools that protect against different failure classes.
- Backups + PITR — restore to any second, protects against logical failures
- Replication (§22) — hot copy, protects against instance/hardware failure
- Multi-zone deployment — survives one data-center failure
- Multi-region strategy — survives a whole-region outage
The DR toolkit — what each mechanism actually protects against
Remember: The DR toolkit is backups + point-in-time recovery (logical failures — corruption, bad deploys, deletion), replication (§22 — hardware/instance failure, fast failover, but it replicates bad data just as well as good data), multi-zone (one data-center failure), and multi-region (a whole-region outage). None of these substitutes for another — they protect against different failure classes, and a real DR strategy picks a combination sized to what each system's downtime and data loss actually cost.
See also: primary replica and sync vs async · replication lag

