RavGBGet a proposal

Writing

How to test that your RDS backups actually restore

A restore drill for Amazon RDS: what you restore from, why a restore makes a new database, timing it, running your app on the copy, and cleaning up after.

TL;DR

  • A backup you have never restored is a guess. The proof is a restore, timed, with your app running against the copy.
  • On Amazon RDS, a point-in-time restore and a snapshot restore both create a new DB instance with a new endpoint. Neither rewinds the original. The copy also starts with default parameter, option and security groups unless you name your own.
  • Automated backups keep up to 35 days of history (you set 0 to 35, and 0 turns them off). Manual snapshots stay until you delete them, up to 100 per Region. Know which one you would restore from, and how far back each goes.
  • Time every stage. The copy is usable once its status is available, but it keeps loading data from Amazon S3 in the background, so it can be slow at first.
  • AWS Backup restore testing can schedule restores and delete them afterwards, but only for backups AWS Backup holds, and only a validation step you write proves the app works.
  • Delete the copy when you finish. It bills like any other instance. In our example, a forgotten copy costs about US$146 a month (Canada (Central) prices, checked November 2026; prices can change).
  • Do it every quarter, write the numbers down, and rotate who runs it.

A new RDS instance has automated backups switched on by default, so having backups is the easy part. Having restored one is a different thing, and the gap matters, because the questions that decide a bad day are not “do we have backups?” but “how long until the app is back, and how much data do we lose?” You only get those answers by doing a restore. Here is how to run a restore drill on RDS, what catches teams out, and how to turn it into a routine you repeat every quarter. The facts about AWS below come from AWS’s own documentation, linked as we go and listed at the end, so you can read past our summary.

What a restore test proves

Two numbers come out of a good drill. AWS’s disaster recovery whitepaper defines them: the recovery time objective (RTO) is the maximum acceptable delay between the interruption of service and its restoration, and the recovery point objective (RPO) is the maximum acceptable time since the last recovery point, which sets how much data you can afford to lose (AWS recovery objectives). Both are set by your business, not by AWS. An objective is what you want. A drill tells you what you have.

So a real test answers four questions:

  1. Does the backup restore at all?
  2. How long does it take, from deciding to restore to the app working again?
  3. How close to the moment of failure can you restore?
  4. Can your application actually run against the restored copy?

Most teams stop at the first question. The fourth is where the surprises are.

Know what you would restore from

RDS gives you two kinds of backup, and they behave differently.

Automated backups

With automated backups on, RDS takes a daily snapshot of the whole instance during your backup window (managing automated backups) and uploads transaction logs to Amazon S3 every five minutes. Together they let you restore to any point in time within the retention period (point-in-time restore).

Retention runs from 0 to 35 days. The default is seven days if the instance was created in the console, but only one day if it was created through the API or the CLI without setting it (backup retention period). Instances built by scripts are worth checking first. Setting retention to 0 turns automated backups off, and RDS deletes the existing automated backups when you do (snapshot retention). Changing between 0 and a nonzero value also causes an outage.

One more trap: when you delete an instance, its automated backups are deleted with it unless you choose to retain them (introduction to backups).

To see where you stand:

aws rds describe-db-instances \
  --query "DBInstances[].[DBInstanceIdentifier,BackupRetentionPeriod,LatestRestorableTime]" \
  --output table

LatestRestorableTime is the newest point you can restore to. Because logs go up every five minutes, it trails the present. Compare it with the clock: that gap is the floor under your real recovery point.

Manual snapshots

A manual snapshot is one you, or your tooling, take on purpose. Unlike automated backups, manual snapshots are not subject to the retention period and do not expire (creating a DB snapshot). They survive when the instance is deleted, and you can keep up to 100 per Region (introduction to backups). If you need an automated backup for longer than its retention period, copy it: the copy is a manual snapshot that stays until you delete it (snapshot retention).

Three details from the snapshot page are worth knowing before you rely on one:

  • On a Single-AZ instance, taking a snapshot briefly suspends I/O, for a few seconds to a few minutes. On Multi-AZ, for MariaDB, MySQL, Oracle and PostgreSQL, the snapshot is taken from the standby instead.
  • On PostgreSQL, data in unlogged tables might not be restored from snapshots.
  • If the engine’s major version is no longer supported, you cannot restore to that version from a snapshot. A very old snapshot can be harder to use than it looks.

Backups are free only up to a point. RDS gives you free backup storage equal to 100 percent of your total provisioned database storage in each Region (introduction to backups). Beyond that, AWS’s price list for Canada (Central), checked November 2026, charges US$0.105 per GB-month of backup storage for RDS for PostgreSQL. Prices can change.

A restore always makes a new database

This is the fact the whole drill hangs on. A point-in-time restore creates a new DB instance without modifying the source (point-in-time restore). A snapshot restore works the same way: you cannot restore a snapshot onto an existing instance (restoring from a snapshot). Nothing rewinds in place.

That has consequences your app will feel:

  • A new endpoint. The endpoint includes the instance’s name, so the copy has a different address. To put a restored copy into service you either change the app’s connection settings or rename instances so the copy takes the old name. Renaming deletes the old DNS name at once, the new one takes about 10 minutes to work, and the renamed instance is not available until it does (renaming a DB instance). Rehearse whichever you would really do.
  • Default groups. Unless you choose otherwise, the copy gets the default DB parameter group, the default VPC, subnet group and security group, and in most cases the default option group. The default parameter group has none of your custom settings. With the CLI or API you can name your own groups at restore time. For a point-in-time restore in the console, you set the parameter and option groups by modifying the instance after the restore.
  • Single-AZ. The CLI restores to a Single-AZ instance by default, SQL Server with mirroring aside (restore-db-instance-to-point-in-time). That suits a drill. In a real recovery, choose Multi-AZ if production runs that way.
  • Inherited tags. If you pass no tags, RDS copies the source’s tags to the copy. A drill copy tagged as production can confuse cost reports and any automation keyed on tags, so tag it yourself.
  • Inherited backup retention. Unless you set it, the copy inherits the source’s retention period, so it starts taking automated backups of its own.

Aurora differs in two ways. With the CLI, restoring an Aurora cluster to a point in time gives you a cluster with no instances, and you create the primary instance yourself with create-db-instance (Aurora point-in-time restore). The console does that step for you. And Aurora MySQL has Backtrack, which does rewind a cluster in place, but AWS is clear that backtracking “is not a replacement for backing up your DB cluster” (Aurora Backtrack).

Run the drill

Pick a quiet day, and if you can, a person who did not set the database up. Keep a clock running and write each time down.

1. Restore with your real settings

Choose a restore time, note it, and start. Name your own groups so the copy behaves like production, and size it the same as the source or close to it, as AWS recommends. You cannot restore onto less storage than the source has, so a drill copy is not a way to save on storage. Tag it so it is easy to find later:

aws rds restore-db-instance-to-point-in-time \
  --source-db-instance-identifier app-prod \
  --target-db-instance-identifier app-restore-drill \
  --use-latest-restorable-time \
  --db-instance-class db.m7g.large \
  --db-parameter-group-name app-prod-params \
  --db-subnet-group-name app-private \
  --vpc-security-group-ids sg-0abc1234 \
  --no-multi-az \
  --tags Key=purpose,Value=restore-drill

The names are examples; use your own. Then wait for it:

aws rds wait db-instance-available \
  --db-instance-identifier app-restore-drill

The waiter checks every 30 seconds and gives up after 60 failed checks, so about 30 minutes (db-instance-available). A large restore can outlast it. If it times out, run it again.

2. Time it, and do not trust “available” too soon

The copy is usable once its status is available, but it is not finished. Its storage keeps loading data blocks from S3 in the background, so it can run below full speed until that completes. AWS calls this lazy loading. Reading a table with a full scan, such as SELECT *, pulls its data down early (restoring from a snapshot). You can watch progress in the StorageOperationStatus and StorageOperationPercentProgress fields of describe-db-instances. The status reads Initializing while loading runs, and both fields disappear when it is done.

Record three times: when you started the restore, when the status became available, and when the app first served correct data. The gap between the first and the last is your measured recovery time. AWS’s Aurora documentation says restoring a cluster to a point in time “can take hours”, and the RDS documentation says a restore onto a different storage type than the source is slower, because the data has to be migrated. Your number is the one that matters, and you only get it with a clock.

3. Point a copy of the app at it

Never point production at the drill copy. Run a staging copy of the app, or a one-off container, with its connection settings changed to the copy’s endpoint. Then check four things:

  • Network. The app can reach the copy. If the copy got the default security group, your app’s rules may not apply to it.
  • Credentials. A snapshot backs up the entire instance, not just individual databases, so the app’s own database users should be there. Log in as the app, not as the master user, to prove it. Keep the copy’s connection details in a separate test secret or config file, and never edit the production secret. If RDS manages your master password in Secrets Manager, note that asking for a managed secret at restore time is supported only for RDS for Oracle. On other engines you turn it on by modifying the restored instance (Secrets Manager integration).
  • Settings. Anything your app relies on from your custom parameter group is there. It will not be on the default group.
  • Data. Pick a busy table and look at its newest row. It should sit just before your restore time. On PostgreSQL, check any unlogged tables separately.

Then run the app’s health check and a few read-only smoke tests. If they pass, you have a backup that restores. If they fail, you found the problem on a quiet day, which is the whole point.

Let AWS Backup run it on a schedule

Doing this by hand every quarter is fine. AWS Backup can also do it for you. Restore testing is an AWS Backup feature that runs restores on a schedule and monitors how long each one takes (restore testing). You set a frequency and start time, choose which vaults to draw from and how far back to look, and pick the latest recovery point or a random one. Supported types include Amazon RDS and Aurora. For RDS it infers restore settings such as the Availability Zone, instance class and VPC security group, which you can override. AWS recommends running restore tests in a dedicated account, and AWS Backup Audit Manager can check whether a restore finished within your target time.

When a test finishes, AWS Backup deletes the restored resources. You can keep them for 1 to 168 hours first, so a validation step has time to run. That step is yours to write: an EventBridge rule catches the completed restore job and calls a target, such as a Lambda function, that connects to the copy, runs your checks, and reports the result with PutRestoreValidationResult (restore testing validation). Without it, a passing test tells you the restore job completed, not that your app works on the result.

Four limits to know:

  • It tests recovery points held in AWS Backup vaults, so the database has to be backed up by AWS Backup first.
  • If the default VPC has no default subnet, RDS restore tests fail. The fix is to set the subnet group in the plan’s restore parameters, or to create a default subnet.
  • Restored resources carry an awsbackup-restore-test tag. If someone removes it, AWS Backup cannot delete the resource, and you have to.
  • It costs money. AWS Backup charges for each recovery point a test restores, plus restored storage for some resource types, and the worked example on its pricing page, for US East (N. Virginia), uses US$1.50 per recovery point, checked November 2026. The restored database also bills for as long as it exists. Prices can change (AWS Backup pricing).

Clean up so the drill does not keep billing

A restored instance is a normal instance. On RDS for PostgreSQL, billing starts as soon as it is available and continues until you delete it, with partial hours billed in one-second increments and a 10-minute minimum (RDS for PostgreSQL pricing).

Here is an example in US dollars, from AWS’s price list for Canada (Central), checked November 2026 (prices can change). A db.m7g.large running PostgreSQL, Single-AZ and On-Demand, is US$0.1856 an hour, and gp3 storage is US$0.127 per GB-month. A two-hour drill costs about US$0.37 in instance hours (2 × US$0.1856), plus a little storage. Forget the copy for 30 days and it is 720 hours × US$0.1856, or US$133.63, plus US$12.70 for 100 GB of storage: about US$146 a month for a database nobody uses. That is the kind of line worth looking for when you read the bill.

To delete it cleanly:

aws rds delete-db-instance \
  --db-instance-identifier app-restore-drill \
  --skip-final-snapshot \
  --delete-automated-backups

If deletion protection is on for the copy, turn it off first with modify-db-instance. That change does not cause an outage (deleting a DB instance). Skip the final snapshot and do not retain automated backups, because retained automated backups and manual snapshots bill until they are deleted. Then remove anything else the drill created: a test secret, a security group rule, a staging config. Finally, list your instances and snapshots and confirm that nothing tagged for the drill is left.

A quarterly routine

Once a quarter, about every 90 days, which is the window our free AWS self-check asks about:

  1. Check every production instance: its retention period, its latest restorable time, and that its newest manual snapshot is recent.
  2. Restore one instance. Alternate: a point-in-time restore one quarter, the newest manual snapshot the next.
  3. Restore with your real parameter group, subnet group and security group, and tag the copy.
  4. Time the restore to available, and to the app working.
  5. Run the app checks: log in as the app’s user, find the newest row, run the health check and smoke tests.
  6. Delete the copy and anything the drill created, then confirm nothing is left.
  7. Write it down: the date, the source, the restore point, the three times, what broke and what you changed.
  8. Rotate who runs it, so recovery is a written procedure and not one person’s memory.

Compare each record with the last one. If restores get slower as the database grows, you will see it here first, not during an outage. If your measured recovery time is longer than what you would tell a customer, that is a finding worth fixing now.

Where we fit

You can do all of this without us, and this guide is written so you can. If you would rather hand it off, our AWS Cost and Reliability Audit is free, read-only, and about a week. It covers one production AWS account plus its staging account if there is one, across the Regions you use. It works through read-only access, so it reviews how your backups are set up and looks for evidence that restores have been tested, but it does not run a restore. You get the top three fixes, each with its estimated saving and effort, plus any urgent security problem we find, in a short written summary, and a readout call, with no obligation to buy anything after the readout. Setting up the drill itself, or an AWS Backup restore testing plan with validation, is the kind of work a fix sprint does. A fix sprint ($4,500 to $7,500 CAD, before GST where it applies) starts with the full prioritised list and a 30-day fix list.

More guides like this one are collected under AWS cost and reliability, and the first things we check in your AWS account shows where backups sit in a review.

Ask us about your backups

Tell us which databases you run on RDS, how they are backed up, and when anyone last restored one. We will tell you honestly whether a drill, the audit, or nothing yet is the right next step. We reply within one or two business days.

Sources, all from AWS and checked November 2026 (AWS prices can change): RDS backups, automated backups, backup retention, point-in-time restore, snapshot restore, manual snapshots, snapshot copies, renaming, deleting and Secrets Manager; the CLI references for restore-db-instance-to-point-in-time and wait db-instance-available; Aurora point-in-time restore and Backtrack; AWS Backup restore testing, validation and pricing; RDS for PostgreSQL pricing, with the hourly and storage figures read from AWS's public price list for Canada (Central); and AWS's definitions of recovery objectives.

The monthly AWS note

One AWS cost or reliability fix a month.

For small SaaS teams running AWS without a DevOps hire. One short email a month:

  • One concrete fix for cost or reliability, with the console steps or CLI command
  • A common AWS mistake small teams make, and how to avoid it
  • New RavGB guides and free tools, before anyone else

From RavGB Technologies Inc., Saddlemont NE, Calgary, AB, Canada (hello@ravgb.com). By subscribing you agree to receive this monthly email. No spam, we never share your address, and you can unsubscribe in one click, any time.