How it works · 15 of 38 Core
What are database replication, backups, RPO and RTO?
How much you can lose
Replication, backups, RPO & RTO: A replica is a live copy that takes over when a machine or zone fails, but it copies every mistake at once; a backup is a copy from the past that can undo a mistake; how often you back up sets how much data you can lose (RPO), and how fast you restore sets how long you are down (RTO).
Loading the animation…
Say it like this A replica is a live copy that saves you when a machine or zone fails, but it copies mistakes too; backups are copies from the past that undo mistakes, and how often you take them sets how much you can lose (RPO) while how fast you restore sets how long you're down (RTO).
Under the hood — for builders
- Real case: UniSuper and Google Cloud (2024)
- A blank parameter in an internal tool gave the fund's private cloud a one-year term; when it ran out, the cloud was deleted:
- The lesson
- Keep one copy outside the blast radius of the same mistake: another account, region or provider.
- Replicas are not backups
- A replica copies every write at once, mistakes included. AWS: continuous replication "may not protect against … data corruption or malicious attack":
- RPO: how much you can lose
- AWS: "the maximum acceptable amount of time since the last data recovery point".
- RTO: how long you can be down
- AWS: "the maximum acceptable delay between the interruption of service and restoration of service".
- Point-in-time recovery
- A snapshot plus saved transaction logs, replayed up to a chosen second inside the retention period.
- Watch out
- A backup nobody has restored is a guess: test restores on a schedule and time them against your RTO.
- Sources
- Google Cloud blog, "Details of Google Cloud GCVE incident" (24 May 2024) · AWS whitepaper, "Disaster Recovery of Workloads on AWS" · Amazon RDS guide, automated backups (read November 2026).
What happens in the replication, backups, RPO & RTO animation, step by step?
- The bank's database takes orders all day. The dial is today: by 17:40, almost eighteen hours of loans, payments and sign-ups are stored in zone a.
- A replica is a live copy in another zone: every write goes to both. If zone a fails, the replica takes over. Amazon RDS Multi-AZ keeps such a copy synchronously.
- At 17:40 someone runs DELETE on the loans table by mistake. The replica copies that too, at the same instant. A replica protects against broken machines, not broken commands.
- The way back is last night's snapshot. Everything since midnight is lost (red: that's the RPO, how much data you can lose), and restoring takes time (grey: the RTO, how long you're down).
- Your turn: back up more often. Drag from once a day to every five minutes and watch the red wedge.
- Replicas and backups both copy the whole database. But what if the database grows too big for any one machine to hold? Next: sharding.
What everyday example explains replication, backups, RPO & RTO?
A shop's two ledgers. A clerk who copies every line into a second ledger as it is written saves you if the first ledger burns, but copies the line that wrongly crosses out a customer, too. A photocopy taken each night lets you undo the mistake, and you lose whatever was written since the last photocopy, plus the hours spent re-entering it.
Why should a team care about replication, backups, RPO & RTO?
Before launch, agree two numbers with the business: how many minutes of data you can afford to lose (RPO) and how long you can be down (RTO); then turn on point-in-time backups to meet the first, a replica in another zone to meet the second, and time a real restore before you need one.