Can you restore the data?
After an accidental deletion, the team needs more than confirmation that a nightly backup exists. Someone has to locate it, restore it and check which recent records are missing.
Recovery also depends on access, available infrastructure and the relationship between the database and stored files. A rehearsal shows how long these steps take and where the instructions are incomplete.
Backups and disaster recovery are different things
A backup is a copy of data taken at a point in time.
Disaster recovery is your ability to get the product working again after something bad happens: a deleted table, a compromised server, a provider outage, a corrupted deploy. It includes backups, but also the infrastructure to restore onto, the configuration to rebuild it, the people who know the steps and the decision of what "working again" means.
Small teams usually have the first and assume they have the second.
Two numbers to agree on first
Before choosing tools, agree on two targets with whoever owns the business side.
How much data can you afford to lose?
This is the recovery point objective. If backups run every night and the worst happens at six in the evening, you lose almost a day of data. For a marketing site that may be fine. For a product that takes payments or orders, it usually is not. The answer drives how often you back up, and whether you need continuous backups of the database rather than nightly snapshots.
How long can you afford to be down?
This is the recovery time objective. One hour, one business day, one week? A shorter target means more preparation: restores rehearsed in advance, infrastructure that can be recreated quickly, maybe a standby copy ready to take over.
Write both numbers down. They turn vague worry into requirements, and they make spending easier to justify, because you can show what each extra measure buys.
What to back up
The database is the obvious part. It is rarely the only part.
- The database, including enough history to recover from a mistake noticed days later, not just last night.
- File storage: uploads, generated documents, images. These often live in object storage and are forgotten because the database backup feels complete.
- Configuration: environment variables, server setup, scheduled jobs, queue settings. If your infrastructure is described in code, the repository covers much of this. If it was set up by hand, write it down now.
- Secrets: API keys, certificates, encryption keys. Store them in a secrets manager with its own recovery path. Losing the key that encrypts your backups makes the backups worthless.
- DNS and domain access: the records themselves and, just as important, the login for the registrar and DNS provider.
- Third-party state: settings in payment, email or authentication providers that your product depends on and that would take days to recreate from memory.
If your database is managed by a cloud provider, some of this comes built in, with clear limits. We look at that trade in managed database or self-hosted PostgreSQL.
The 3-2-1 idea, applied sensibly
The classic rule says: keep three copies of your data, on two different types of storage, with one copy off-site. For a cloud product, a practical reading looks like this:
- The live data, plus backups managed by your provider.
- A second copy stored somewhere else: a different account, region or provider.
- At least one copy that cannot be deleted or changed for a set period, so that a compromised admin account or a ransomware attack cannot wipe everything at once.
The separate account matters more than people expect. If one set of credentials can delete both the production database and every backup, you have one copy, not three.
Test the restore procedure
Backups fail quietly. A job that stopped running three months ago. A dump that completes but cannot be restored because of a version mismatch. A backup that excludes a schema someone added last year. Files that were never included. Encryption keys nobody can find.
You discover all of these during a restore. The only question is whether that restore happens during a calm drill or during an incident.
A quarterly restore drill
Once a quarter, put two hours in the calendar and do this:
- Pick a backup from a few days ago, not last night's.
- Restore it into a separate environment, never over production.
- Time each step, from finding the backup to having the application running against the restored data.
- Check the result: log in, open a few records, confirm that uploaded files load and that recent data is where you expect it.
- Compare the measured time and data loss with your two targets.
- Write down everything that was confusing, missing or slow, and fix one item before the next drill.
Rotate who leads the drill. Recovery that depends on one person being awake and reachable is not recovery.
A one-page recovery plan
You do not need a thick document. One page that a tired engineer can follow at night is worth more. It should cover:
- Targets. The agreed data loss and downtime limits.
- Contacts. Who decides that this is a disaster, who does the work, who talks to customers, and how to reach each of them outside working hours.
- Inventory. Where each kind of backup lives, how long it is kept and who has access.
- Scenarios. Short step lists for the likely cases: a deleted table, a lost server, a compromised account, a provider region going down.
- Rebuild order. Which services come back first and what each one depends on.
- Communication. A template for the status message to customers, and where it gets posted.
- Last drill. The date, the measured restore time and the open issues.
Store copies of this page somewhere that does not depend on the systems it describes. A plan that lives only on the server you are trying to recover will not help.
Matching the effort to the risk
Not every product needs a standby region and minute-level recovery. Spending should follow the two numbers you agreed on.
Low stakes
A content site or an internal tool that can be down for a day. Nightly backups of the database and files, a copy in a second account, and a yearly restore test are enough.
Customer-facing product
A SaaS or store where downtime costs revenue and trust. Continuous database backups so you lose minutes rather than a day, infrastructure that can be recreated from code, and the quarterly drill described above.
Regulated or high-volume
Payments, health or legal data, or a product where an hour of downtime makes headlines. Add a warm standby that can take traffic, documented failover, and drills that include switching over for real in a controlled window.
Moving up a level is a business decision as much as a technical one. Put the cost of each level next to the cost of an outage, and the choice is usually clear.
Where to start this week
If you do nothing else, do these three things:
- Agree on the two numbers with the business owner.
- Confirm that at least one backup copy lives outside the production account and cannot be deleted by the same credentials.
- Restore last week's database into a scratch environment and time it.
The restore drill shows whether the backup is usable and how long recovery takes. If keeping this running month after month is more than your team wants to own, it is a normal part of ongoing maintenance and support, and the drill results make a good first conversation.


