Home / Insights / Architecture and Modernization
Architecture and Modernization
Backups You Can Actually Restore: Testing Recovery for Databases and Files
A green backup dashboard tells you that copies were made, not that you can get your business back. This guide explains how to set recovery targets, back up databases and files in restorable ways, and build a restore testing routine that proves it works before you need it.
TopicsArchitecture and ModernizationBusiness Operations and Integration
Key takeaways
- A backup is only proven when it has been restored and checked; schedule restores, not just backups.
- Set recovery point and recovery time targets per data class first, then choose backup methods that can meet them.
- For databases, combine regular base backups with continuous log archiving for point-in-time recovery, and monitor the archive as closely as the database.
- Keep at least one copy that ransomware or a compromised admin account cannot reach or alter.
- Run tiered tests: automated restore checks weekly or monthly, application-level restores quarterly and a full recovery drill at least yearly.
On this page
- Why backups that run still fail to restore
- Start from recovery targets, not backup schedules
- Database backups that can actually be restored
- Files, object storage and copies attackers cannot reach
- Designing a restore testing programme
- Monitoring, ownership and evidence
- Costs, risks and a restore readiness checklist
- Frequently asked questions
- Sources and methodology
Most organisations have backups. Fewer have restored one recently, under time pressure, into a working application. The gap shows up at the worst moment: a corrupted table, a deleted storage bucket, a ransomware incident or a failed migration. The backup job ran every night, but the archive was incomplete, the restore takes far longer than anyone assumed, or nobody remembers the steps.
This article is for CTOs, engineering leads and operations managers responsible for production systems on AWS, Azure or Google Cloud. It focuses on one question: how do you know you can restore? Our cloud and DevOps team builds backup into the security layer of the environments we manage, alongside infrastructure as code, monitoring and alerting, and the approach below reflects that work. For choosing overall recovery strategies and costs, see our companion guide to cloud disaster recovery, RTO and RPO.
Why backups that run still fail to restore
Backup failures are rarely about the backup job crashing. They are about assumptions nobody tested. The common patterns we see when reviewing systems:
- Incomplete scope. The database is backed up, but uploaded files, configuration, secrets or the search index are not, so the restored application is broken.
- Silent archive gaps. Continuous log archiving stopped weeks ago because of a permission change or full disk, and point-in-time recovery only works up to that moment.
- Same blast radius. Backups sit in the same account, with the same credentials, as production. Whatever deletes production can delete the backups.
- Unknown restore time. A multi-terabyte restore takes hours longer than the business assumed, and nobody measured it.
- Missing runbook. The one person who knew the steps has left, or the steps reference infrastructure that no longer exists.
- Logical corruption copied faithfully. A bug wrote bad data for days; every recent backup contains it, and older ones have expired.
Every one of these is discovered by a restore test and missed by a backup success report. That is the whole argument for this article.
Action: ask your team when each production data store was last restored end to end, how long it took and who did it. If the answers are vague, start with the restore testing section below.
Start from recovery targets, not backup schedules
Backup design should begin with two business questions for each data set: how much recent data can we afford to lose (recovery point objective, RPO), and how long can we be without it (recovery time objective, RTO)? NIST’s SP 800-34 contingency planning guide frames this through a business impact analysis and provides templates for it; you do not need the full federal process, but the discipline of asking the business is the same.
Classify your data
| Data class | Examples | Typical targets to discuss | Backup approach |
|---|---|---|---|
| Transactional core | Orders, payments, patient or customer records | Minutes of data loss, hours to restore | Continuous log archiving with point-in-time recovery, plus regular base backups |
| User-generated files | Uploads, documents, images | Hours of data loss, hours to a day to restore | Object versioning, cross-account replication and an immutable copy |
| Derived data | Search indexes, caches, analytics tables | Can be rebuilt; restore time matters more than loss | Rebuild scripts, tested; optional snapshots to speed recovery |
| Configuration and secrets | Infrastructure definitions, environment settings, keys | Must be current; needed before anything else | Infrastructure as code in version control; secrets backed up under strict access |
The ‘typical targets’ column is a starting point for conversation, not a recommendation; your business owners set the actual numbers. Write them down and get them agreed, because they drive cost. If you are also setting uptime commitments, our guide to setting availability targets for a cloud application explains how the two relate.
Action: produce a one-page register listing each data store, its class, owner, agreed RPO and RTO, and current backup method. Gaps between target and method become your work list.
Database backups that can actually be restored
Databases need the most care because they change constantly and are hard to make consistent after the fact.
Logical dumps versus physical backups
Logical dumps (such as pg_dump for PostgreSQL) export data as SQL or an archive format. They are portable and useful for moving or partially restoring data, but restoring a large database from a dump can be slow, and they capture a single moment. Physical backups copy the database files and, combined with transaction logs, allow recovery to any point in time.
Point-in-time recovery
The PostgreSQL documentation on continuous archiving and point-in-time recovery describes combining a base backup with a continuous archive of write-ahead log (WAL) files, so you can restore the base backup and replay logs up to a chosen moment. It is explicit about the operational traps: test the archiving procedure before taking the first base backup, monitor archiving to confirm it is working, keep several backup sets, back up configuration files separately because WAL replay does not restore them, and inspect the recovered database before letting users back in. It also notes that some archive command failures do not appear in the archiver statistics view, so the server log must be monitored too.
Managed databases such as Amazon RDS, Azure Database for PostgreSQL or Google Cloud SQL handle much of this for you, but you still own the decisions: retention period, cross-region or cross-account copies, and whether you have ever restored to a specific time and checked the result. Our article on choosing a managed Postgres database covers how backup features differ between options.
Guarding against logical corruption
Point-in-time recovery helps only if you notice the problem within your retention window. Keep some longer-retention backups (for example weekly or monthly copies held for longer periods) so a slow-burning data bug does not leave you with only corrupted copies.
Action: for each production database, confirm the point-in-time recovery window, check when log archiving last failed, and restore to a specific timestamp in a non-production environment this month.
Files, object storage and copies attackers cannot reach
Files and object storage need a different approach. Object versioning protects against accidental overwrites and deletes, but not against someone with admin rights deleting the bucket or the versions.
Separate the blast radius
The UK National Cyber Security Centre’s guidance on offline backups in an online world recommends keeping at least one backup offline at any given time so that an incident cannot reach every copy. For cloud storage, which cannot be physically unplugged, it suggests cutting off access instead: restricting which clients can write backups, removing credentials when storage is not in use and configuring storage so that clients can add new backups but not overwrite or delete existing ones. It also points to the familiar 3-2-1 approach (three copies, two devices, one offsite) and stresses testing that backups can actually be restored.
Practical cloud patterns
- Replicate critical buckets or backup vaults to a separate account or subscription with its own administrators.
- Use object lock or immutable backup vault features where your provider offers them, with retention set to cover your detection window.
- Grant backup writers append-only permissions; keep delete permissions with a separate, tightly controlled role.
- Include file storage in the same restore tests as the database, because an application restored with records but no attachments is not restored.
Action: list who can delete each backup copy today. If the same credentials can delete production and its backups, fix that before anything else.
Designing a restore testing programme
Restore testing works best as a tiered routine, with frequent automated checks and less frequent, deeper exercises.
| Test level | What it proves | Suggested frequency | Effort |
|---|---|---|---|
| Automated integrity checks | Backups exist, are recent, complete and readable | Daily | Low once set up |
| Automated restore test | A recent backup restores into a clean environment and passes basic queries; restore time is measured | Weekly or monthly | Low to medium |
| Application-level restore | Database, files and configuration restore together and the application works | Quarterly | Medium |
| Full recovery drill | People, runbooks and access work under time pressure, against the agreed RTO | At least annually, and after major changes | High |
Frequencies are suggestions to adjust for your risk profile and change rate, not standards.
Use the tooling your platform provides
Cloud providers increasingly support this directly. AWS Backup restore testing, for example, lets you define restore testing plans on a schedule, pick the latest or a random recovery point from a chosen window, restore supported resources such as RDS, Aurora, DynamoDB, EBS, EFS and S3, keep restored resources for up to 168 hours while you run validation, and then delete them automatically. It also records how long each restore took, which gives you evidence against your RTO. Validation must be triggered programmatically, so plan a small script or function that runs your checks.
Running a recovery drill, step by step
- Pick a realistic scenario: for example, ‘production database corrupted at 14:00 yesterday; restore to 13:55 in a new environment’.
- Brief participants without rehearsing the answer. Include someone who did not write the runbook.
- Start the clock and follow the runbook exactly as written, noting every deviation.
- Restore data, files and configuration, then point a copy of the application at the restored environment.
- Validate with predefined checks: row counts against known values, recent records present, sample files open, key user journeys work.
- Stop the clock and compare elapsed time and data loss with the agreed RTO and RPO.
- Write up findings, update the runbook and track fixes to completion.
Action: schedule your first automated restore test for the most critical database within the next month, and put a full drill in the calendar for the next quarter.
Monitoring, ownership and evidence
Restore testing only stays alive if someone owns it and the results are visible.
What to monitor
- Backup job success, duration and size trends; sudden size drops often signal a scope problem.
- Age of the newest backup and of the newest archived log for each database.
- Restore test pass or fail, restore duration and validation results.
- Changes to backup policies, retention and permissions, with alerts for deletions.
Feed these into the same monitoring stack as the rest of your production signals. Our guide to observability with OpenTelemetry covers vendor-neutral approaches.
Ownership
Give each data store a named owner responsible for its targets and test results, and give one person overall accountability for the backup and recovery programme. If you use an external provider for operations, make restore testing an explicit deliverable with reported results, not an assumed part of ‘managed backups’. Our article on DevOps managed services covers what to keep in-house and what to outsource.
Evidence
Customers, auditors and insurers increasingly ask how you know you can recover. A simple log of tests, dates, durations and outcomes, plus drill write-ups, answers that question far better than a description of backup settings.
Action: add restore test results to your monthly operations report alongside uptime and incidents.
Costs, risks and a restore readiness checklist
Restore testing costs money: compute and storage for test restores, cross-account copies, longer retention and engineering time for drills. Most of this is modest compared with the cost of a failed recovery, but make it visible in budgets so it is not cut first. Automated tests that clean up after themselves keep the ongoing cost low.
Risks to manage
- Test restores leaking data: restored production data in test environments must have the same access controls as production, and should be deleted after validation.
- Tests that prove too little: a restore that completes but is never queried proves only that files copied. Always validate content.
- Drift: new databases, buckets and services appear without being added to the backup scope. Review scope whenever architecture changes, ideally from infrastructure-as-code definitions.
- Cost surprises: large restores and cross-region transfers can carry noticeable charges; estimate them before scheduling frequent full restores.
Restore readiness checklist
- Data register with owner, class, RPO and RTO agreed for every production data store.
- Databases use base backups plus continuous log archiving where point-in-time recovery is needed.
- Log archiving monitored, including server logs, with alerts on gaps.
- Configuration, secrets and infrastructure definitions backed up and restorable.
- At least one backup copy in a separate account or vault that production credentials cannot delete or alter.
- Longer-retention copies kept to recover from slow-burning data corruption.
- Automated restore tests running on a schedule, with content validation and measured duration.
- Quarterly application-level restore including files and configuration.
- Annual full drill against agreed targets, with runbook updates tracked.
- Restore results reported monthly and owned by a named person.
Frequently asked questions
How often should we test restoring our backups?
Use tiers: automated integrity checks daily, automated restore tests weekly or monthly, application-level restores quarterly and a full drill at least annually or after major changes. Adjust to your risk and rate of change.
Are managed database backups enough on their own?
They handle much of the mechanics, but you still need to set retention, keep copies outside the production account, and prove by testing that you can restore to a specific time and that the application works afterwards.
What is the difference between RPO and RTO?
RPO is how much recent data you can afford to lose, measured as time. RTO is how long you can be without the system before recovery must be complete. Both should be agreed with business owners for each data set.
Does restore testing expose production data to risk?
It can if test environments are less secure than production. Restore into isolated environments with production-grade access controls, limit who can view the data and delete restored copies after validation.
How do backups protect us against ransomware?
Only if at least one copy is out of reach of the attacker: offline, in a separate account, or protected by immutability or append-only permissions. Then test that you can restore from that copy.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- PostgreSQL documentation: Continuous Archiving and Point-in-Time Recovery (PITR) — accessed 9 November 2026. Base backup plus WAL archiving, advice to test and monitor archiving, configuration files not restored by WAL replay.
- AWS Backup Developer Guide: Restore testing — accessed 9 November 2026. Scheduled restore testing plans, supported resources, validation window and automatic cleanup.
- UK NCSC: Offline backups in an online world (2019) — accessed 9 November 2026. Keeping at least one backup offline, append-only access, 3-2-1 approach and testing restores.
- NIST SP 800-34 Rev. 1: Contingency Planning Guide for Federal Information Systems — accessed 9 November 2026. Contingency planning context and business impact analysis templates.
- PoliteTech: Cloud and DevOps — accessed 9 November 2026. PoliteTech’s cloud, infrastructure as code, monitoring and backup capabilities.
Related reading
Continue your research
When did you last prove you could restore production?
Tell us which systems you run and how they are backed up today. We can review your recovery targets, set up automated restore tests and run a first recovery drill with your team.
