Restoring Databases from Backups and Snapshots
This lesson explains the database restore methods, which decide how much data is lost and how long the application is down, one of the most consequential operations a CloudOps engineer performs.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish automated backups from manual snapshots.
- Choose between point-in-time restore, snapshot restore and Aurora Backtrack.
- Undo a bad change with point-in-time restore.
Automated backups and snapshots
Automated backups take a daily storage snapshot during the backup window and capture transaction logs every five minutes, with a retention period of 1 to 35 days (0 disables them, which also disables point-in-time restore and read replicas). They are deleted when the instance is deleted unless you choose to retain them. Manual snapshots are kept until you delete them, can be copied to other Regions (re-encrypting with a key in the destination) and shared with other accounts (an encrypted snapshot requires sharing a customer managed key). AWS Backup can manage both schedules and retention. Automated backups can also be replicated to another Region for cross-Region point-in-time restore.
1–35days
Automated backup retention period
5min
Interval at which transaction logs are captured
Restore methods
Point-in-time restore (PITR) creates a new DB instance from automated backups to any second within the retention period, up to the latest restorable time, usually about five minutes before now. Snapshot restore creates a new instance at the moment of the snapshot. Both create new endpoints, and parameter groups and security groups should be checked on the new instance; to keep the same endpoint name, rename the old instance and give the new one the original name. For Aurora, PITR and snapshot restore create a new cluster, Backtrack (Aurora MySQL only, enabled at creation with a target window up to 72 hours) rewinds the existing cluster in place within minutes, and cloning creates a fast copy-on-write clone for investigation without affecting production.
The following table compares the methods by RTO, RPO and cost.
| Method | RPO | RTO | Notes |
|---|---|---|---|
| Point-in-time restore | Seconds to ~5 minutes | Minutes to hours (size-dependent) | New instance; choose time just before the problem |
| Snapshot restore | Time since snapshot | Minutes to hours | New instance; manual snapshots kept indefinitely |
| Aurora Backtrack | To the second within the window | Minutes | In place; Aurora MySQL only |
| Aurora clone | Current data | Minutes | Copy for investigation or testing |
| Promote cross-Region replica | Replication lag | Minutes | For Regional disasters |
| Aurora Global Database failover | Typically about 1 second | About a minute | Managed cross-Region failover |
The following diagram compares the three restore methods.

Choosing a restore method
Undoing a bad change
At 15:42 a developer runs an UPDATE without a WHERE clause on the production RDS for MySQL orders table. Retention is 7 days. The operator performs a point-in-time restore to 15:41 into a new instance named orders-restore with the same parameter group, subnet group and security groups.
aws rds restore-db-instance-to-point-in-time --source-db-instance-identifier orders-prod \
--target-db-instance-identifier orders-restore --restore-time 2026-10-14T15:41:00Z \
--db-subnet-group-name prod-db --vpc-security-group-ids sg-0db --db-parameter-group-name orders-mysql80Because only one table was damaged and new orders have arrived since, the team copies the correct rows from orders-restore back into production rather than switching the application to the restored instance, which would lose the newer data. Had the whole database been corrupted, they would rename the instances so that the restored one takes the original endpoint.
What happens to point-in-time restore when the backup retention period is set to 0?
Show answer
It is disabled, because setting retention to 0 turns off automated backups.
Exam Tips
Remember for the exam
- Automated backups (1-35 days) enable point-in-time restore; retention 0 disables it.
- PITR and snapshot restore always create a new instance with a new endpoint.
- Aurora Backtrack rewinds Aurora MySQL in place; cloning creates a quick copy.
- Manual snapshots persist until deleted; share encrypted snapshots with a customer managed key.
- Rename instances to keep the original endpoint after a restore.