
Day 44: AWS Backup and Disaster Recovery – RPO, RTO, and Recovery Strategies
Day 44 of my 90-day AWS challenge: how AWS Backup protects data across services with plans, vaults, and cross-Region copies, what RPO and RTO mean, and how the four disaster recovery strategies trade cost against recovery speed.
Recap of Day 43
Yesterday I protected an application from attacks. But some failures can't be blocked: someone deletes the wrong table, a bad deployment corrupts data, ransomware encrypts files, or a whole Region has an outage. For those, the question is not "can I stop it?" but "can I recover?" That is backup and disaster recovery (DR).
Two numbers that guide every plan
Term | Question it answers | Example |
|---|---|---|
RPO (Recovery Point Objective) | How much data can I afford to lose? | RPO of 1 hour means losing at most the last hour of data |
RTO (Recovery Time Objective) | How long can the application be down? | RTO of 4 hours means being back within 4 hours |
A smaller RPO needs more frequent backups or replication, and a smaller RTO needs more infrastructure ready in advance. Both cost money, so they should match what the business actually needs.
Backup vs. replication
- Replication keeps a live copy up to date, but it also copies mistakes: a deleted row or encrypted file is replicated too
- Backups keep point-in-time copies that I can go back to
- A good plan usually uses both, plus the 3-2-1 rule: three copies, on two kinds of storage, with one copy kept somewhere else (another Region or account)
AWS Backup
AWS Backup is a centralized service for backing up many AWS services from one place, with one set of policies.
Supported resources include
EC2 and EBS (Day 25), RDS (Day 6), DynamoDB (Day 12), EFS (Day 25), S3 (Day 4), and others.
Key concepts
Concept | What it is |
|---|---|
Backup plan | The policy: what schedule to follow, how long to keep backups, and where to copy them |
Backup rule | A part of a plan: a schedule, a retention period, and a destination vault |
Resource assignment | Which resources the plan protects, selected by tags or by specific resources |
Backup vault | A container that stores backups, encrypted with KMS (Day 19) |
Recovery point | One saved backup of a resource |
Lifecycle | Rules to move older backups to cheaper cold storage and delete them after a set time |
Selecting resources by tag is powerful: tag a database
backup=daily and the plan picks it up automatically.Protecting the backups themselves
- Cross-Region and cross-account copy keep a copy somewhere else, so an Region outage or a compromised account can't destroy every copy. This works well with the multi-account setup from Day 40
- Vault Lock makes backups immutable (write once, read many), which helps against ransomware and accidental deletion. In compliance mode it cannot be undone after a cooling-off period, so I should never enable it casually
- Vault access policies and IAM (Day 2) control who can delete backups
- Audit Manager and reports help show that backups are happening
Restoring
Restoring creates a new resource from a recovery point, such as a new EBS volume, a new RDS instance, or a new DynamoDB table. Backups are only useful if the restore works, so test restores regularly.
From the CLI, an on-demand backup of one resource looks like this (the names and ARNs are placeholders):
aws backup start-backup-job
--backup-vault-name my-vault
--resource-arn<resource-arn>
--iam-role-arn <backup-role-arn>
Service-native protection
AWS Backup sits on top of features I've already met:
- RDS automated backups and snapshots, with point-in-time restore (Day 6)
- EBS snapshots (Day 25)
- DynamoDB point-in-time recovery (Day 12)
- S3 versioning (Day 4) and cross-Region replication
- CloudFormation to rebuild infrastructure from templates (Day 16)
The four disaster recovery strategies
Strategy | What runs in the recovery Region | Typical RTO and RPO | Cost |
|---|---|---|---|
Backup and restore | Nothing until a disaster, only copies of data | Hours | Lowest |
Pilot light | Core pieces such as the database replica, with compute switched off | Tens of minutes to hours | Low |
Warm standby | A scaled-down but working copy of the whole application | Minutes | Medium |
Multi-site active/active | A full copy serving live traffic | Near zero | Highest |
The recovery times are typical guides, not guarantees. Moving up the list shrinks RTO and RPO and raises the cost.
Making failover work
- Route 53 failover routing and health checks (Day 11) send users to the recovery Region
- Infrastructure as code (Day 16) recreates the environment quickly and consistently
- Cross-Region copies of data, images in ECR (Day 17), and secrets (Day 19)
- AWS Elastic Disaster Recovery can continuously replicate servers to AWS for fast recovery
Availability vs. disaster recovery
Multi-AZ (Day 6 and 10) handles the failure of a data center in one Region. Disaster recovery handles bigger problems, like the loss of a Region or data corruption, so they complement each other.
Cost
Backups are billed by GB stored per month, with cold storage cheaper than warm, plus charges for restores and cross-Region data transfer. Set a budget (Day 26), use lifecycle rules to delete old backups, and remember that snapshots and recovery points keep billing until they are deleted.
How it connects to earlier days
- Day 40: a separate backup account is a strong pattern
- Day 19: backups and copies are encrypted with KMS
- Day 20: CloudTrail shows who deleted or changed backups
- Day 11: Route 53 failover sends traffic to the recovery site
What I practiced today
- Created a backup vault
- Created a backup plan with a daily rule and a short retention period
- Tagged a small resource so the plan selected it by tag
- Ran an on-demand backup
- Restored the recovery point into a new resource and checked that it worked
- Deleted the recovery points, the vault, the plan, and the test resources afterwards
Key takeaways
- RPO is about data loss, RTO is about downtime, and both decide how much to spend
- Replication is not backup: keep point-in-time copies, ideally in another Region or account
- Test restores, because an untested backup is only a hope
- Never enable a compliance-mode Vault Lock for practice, and delete old recovery points to avoid charges
Up next: Day 45
Observability: CloudWatch Logs Insights, X-Ray, and Application Signals.
Learning AWS too? Follow along and share what you're building. #90DaysOfAWS
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article