Volume 8 · Chapter 3 — High Availability, Disaster Recovery and Safe Change
Backups, Snapshots, and Data Recovery
3.1 Introduction
Redundancy and failover protect against component failure, but they don’t protect against data loss from corruption, accidental deletion, a bad deployment, or a malicious act - for that you need backups. Backups are the last line of defence for your data, and for a bank, losing or corrupting financial data is catastrophic and often unrecoverable by any other means. This chapter covers backups and snapshots, the critical difference between redundancy and backup, and the practices that make recovery actually work when you need it.
3.2 Redundancy Is Not Backup
A crucial distinction that trips people up: redundancy is not backup. Redundancy - a database with a synchronous standby, replicas, multi-AZ - protects against a component failing, but it replicates data in real time, which means it also faithfully replicates a mistake. If someone deletes data or corrupts it, or a bad deployment writes garbage, that deletion or corruption is instantly replicated to the standby and replicas too - so redundancy doesn’t save you from data loss caused by error or malice; it just makes the same bad data highly available. Backups are different: they’re point-in-time copies you can restore from, letting you recover the data as it was before the corruption or deletion. You need both - redundancy for availability, backups for recoverability from data loss.
flowchart TB
subgraph Redundancy[Redundancy - protects availability]
P[(Primary)] -. real-time replication .-> S[(Standby/replica)]
Note1[A delete/corruption replicates instantly\nto the standby too - NOT protected]
end
subgraph Backup[Backups - protect recoverability]
Snap[Point-in-time copies\nrestore to before the corruption]
end 3.3 Snapshots and Automated Backups
On AWS, backups take a few forms. Snapshots are point-in-time copies of storage - EBS volume snapshots and RDS database snapshots - stored durably (in S3) and usable to restore or clone. Managed databases provide automated backups and point-in-time recovery, letting you restore the database to any moment within a retention window, which is powerful for recovering from a corruption that happened at a known time. S3 versioning keeps previous object versions so an overwrite or delete can be undone. The practices that matter: back up automatically on a schedule (don’t rely on manual backups), retain backups long enough to meet recovery and compliance needs, and store copies in another Region so a Region-level disaster doesn’t take your backups with it.
3.4 The 3-2-1 Principle and Immutability
A durable backup strategy follows principles like 3-2-1 - multiple copies, in more than one location, with at least one off-site (in cloud terms, in another Region or account). Critically, backups themselves must be protected: if an attacker (or a bad actor, or ransomware) can delete or encrypt your backups, they’re worthless when you need them. So important backups are made immutable (write-once, using object lock) and isolated - often in a separate account with tightly restricted access - so they can’t be tampered with or deleted, even by compromised credentials. For a bank, protecting the backups against deletion is as important as making them, because the whole point is that they survive exactly the scenarios (attack, catastrophic error) in which everything else is compromised.
3.5 Recovery Testing
As with DR, a backup you’ve never restored is an assumption, not a safeguard. The value of a backup is entirely in your ability to restore it, and untested backups routinely fail - they’re incomplete, corrupted, or the restore process has a gap nobody knew about. So you test restores regularly: actually restore backups and verify the data is complete and correct, and confirm the restore fits within your recovery time objective. This proves the backups work and keeps the restore process current as systems change. The discipline is that backups exist to be restored, so restoring them - not just taking them - must be a routine, verified practice, because the one time you truly need a restore is exactly when you cannot afford it to fail.
3.6 Banking Production Scenario
A bank protects its financial data with both redundancy and backups, understanding they solve different problems. The transactional database runs Multi-AZ for availability and also has automated backups with point-in-time recovery, so it can be restored to any moment within the retention window if data is corrupted or wrongly modified - something the multi-AZ standby, which replicates corruption instantly, cannot do. Snapshots and backups are stored in a separate Region and a separate, tightly-locked account, made immutable with object lock so ransomware or compromised credentials can’t delete them. S3 versioning and object lock protect statement and record data. The bank tests restores on a schedule, proving it can recover complete, correct data within its RTO - so its last line of defence is verified, not assumed.
3.7 Troubleshooting: Backup and Recovery Failures
Backup failures are among the most damaging because they surface during a real crisis. Data lost to deletion or corruption with no way back means there were no backups (only redundancy, which replicated the loss) - add point-in-time backups. Backups that won’t restore, or restore incomplete data, mean restores were never tested - test regularly. Backups deleted by an attacker or bad deployment mean they weren’t immutable or isolated - use object lock and a separate locked-down account. Backups lost with the Region in a disaster mean they weren’t stored cross-Region - replicate them elsewhere. Restores that take too long mean the approach doesn’t meet the RTO. The discipline is automated, cross-Region, immutable, isolated backups with regular restore testing - because the whole point is to recover exactly when everything else has failed.
Why is redundancy not the same as backup, and what makes a backup strategy trustworthy?
Redundancy and backup solve different problems, and conflating them is a dangerous mistake. Redundancy - a database with a synchronous standby, read replicas, multi-AZ deployment - protects against a component failing by keeping a real-time copy of the data, so if the primary fails you fail over to the standby. But because it replicates data in real time, it faithfully replicates mistakes too: if someone deletes data, corrupts it, or a bad deployment writes garbage, that deletion or corruption is instantly replicated to the standby and the replicas, so redundancy does not protect you from data loss caused by error, a bad change, or malice - it just makes the same bad data highly available. Backups are fundamentally different: they’re point-in-time copies you can restore from, so you can recover the data as it was before the corruption or deletion happened. That’s why you need both - redundancy for availability against component failure, and backups for recoverability against data loss - and it’s why a system can be fully redundant yet still permanently lose data with no backups. What makes a backup strategy trustworthy comes down to several things. First, automation and retention: back up automatically on a schedule rather than relying on manual backups, and retain them long enough to meet recovery and compliance needs - managed databases offer automated backups and point-in-time recovery to restore to any moment in a window, which is powerful for recovering from a corruption at a known time. Second, off-site copies: store backups in another Region (and ideally another account), following principles like 3-2-1 - multiple copies, more than one location, at least one off-site - so a Region-level disaster doesn’t destroy your backups along with everything else. Third, and critically, protect the backups themselves: if an attacker, ransomware, or a bad actor can delete or encrypt your backups, they’re worthless exactly when you need them, so important backups are made immutable with object lock (write-once) and isolated in a separate, tightly-restricted account, so they survive even compromised credentials. Fourth, and most importantly, test restores regularly: a backup you’ve never restored is an assumption, not a safeguard, and untested backups routinely turn out to be incomplete, corrupted, or have a broken restore process - so you actually restore them on a schedule, verify the data is complete and correct, and confirm the restore fits your recovery time objective. The value of a backup is entirely in your ability to restore it. So redundancy is not backup because it replicates mistakes in real time, and a trustworthy backup strategy is automated, retained appropriately, stored off-site cross-Region, made immutable and isolated so it can’t be tampered with, and - above all - regularly restore-tested, because backups exist precisely to save you when everything else has failed, and that’s the worst possible time to discover they don’t work.
Chapter Revision Notes
- Redundancy protects availability but replicates deletions/corruption in real time - it is NOT backup.
- Backups are point-in-time copies you restore from to recover data as it was before loss/corruption; you need both.
- Use snapshots, automated backups with point-in-time recovery, and S3 versioning; back up automatically and retain appropriately.
- Store backups cross-Region (3-2-1), and make them immutable (object lock) and isolated (separate account) so they can’t be deleted by attackers.
- Test restores regularly - the value of a backup is only in your proven ability to restore it within your RTO.