Article
Backups that actually restore: RPO, RTO and a restore drill for small products
By Aymane Biti, DevOps and cloud
, 5 min read

A backup you have never restored is a hope, not a backup. In January 2017 GitLab lost about six hours of production data, including roughly 5,000 projects, 5,000 comments and 700 new user accounts, partly because its backups had been failing without anyone noticing. For a small product, avoiding that takes four things: decide how much data you can afford to lose and how long you can afford to be down, check what your host already backs up, keep one copy outside your main account, and rehearse a restore every quarter.
Two numbers to decide first
Disaster recovery plans revolve around two targets. AWS defines them clearly in its disaster recovery whitepaper:
- Recovery Point Objective (RPO): "the maximum acceptable amount of time since the last data recovery point". In plain terms, how much recent data you can afford to lose.
- Recovery Time Objective (RTO): "the maximum acceptable delay between the interruption of service and restoration of service". How long the product can be down.
The answers are business decisions, not technical ones. A booking platform that loses a day of reservations has customers turning up for bookings it no longer knows about, so its RPO is minutes. A content site that loses a day of edits can rewrite them, so 24 hours may be fine. The same whitepaper adds a useful limit: if a recovery strategy costs more than the failure it protects against, it is not worth putting in place unless something like a regulation requires it.
What your host already does, and what it doesn't
Managed databases do a lot of the work, but the defaults have gaps you need to know about. Two examples:
- Supabase backs up Pro, Team and Enterprise projects daily, with 7, 14 and up to 30 days of daily backups. Free tier projects are advised to export their data regularly with the CLI's
db dumpcommand. Point-in-Time Recovery is an add-on for paid plans that restores to a chosen moment, with a worst-case recovery point objective of two minutes. And database backups do not include files stored through the Storage API, so uploaded files need their own plan. - Amazon RDS takes automated backups and can restore the instance to any point in time within the retention period you set. But if you delete the instance without choosing to retain automated backups, they are deleted with it; only DB snapshots survive: a final snapshot you ask for at deletion, or manual ones.
If you run PostgreSQL yourself, the official documentation lists three different approaches: an SQL dump, a file system level backup, and continuous archiving, which is the basis of point-in-time recovery. A nightly dump is the simplest; continuous archiving is what gets your RPO down to minutes.
Keep one copy outside the blast radius
Backups that live in the same account as production share its risks: a deleted project, a compromised admin login or a billing problem can take both at once. CISA's ransomware guide recommends that you "maintain offline, encrypted backups of critical data" and regularly test their availability and integrity. For cloud products it suggests cloud-to-cloud backups, and notes that some cloud vendors offer immutable storage, which it says to use with caution because it doesn't meet every regulation's criteria.
For a small product, a practical version is a nightly encrypted database dump copied to storage in a separate account, ideally with another provider, that the production credentials can't delete. Make sure that account is in your company's name, not a contractor's; who holds which keys is part of code ownership when you outsource.
Don't forget what isn't in the database
- Uploaded files: images, documents and exports in object storage, which database backups often don't include.
- Configuration: environment variables and settings needed to start the app, kept in a secrets manager or password vault, not only on one server.
- Infrastructure: DNS records, domain and hosting accounts. Write down where they are and who has access.
- Code: the repository, its history and the pipeline that deploys it.
The quarterly restore drill
- Restore the latest backup into a fresh, separate database. Never test over production.
- Point a copy of the app at it and check the data that matters: recent orders, users created yesterday, the newest uploaded files.
- Time the whole thing from start to working app. That is your real RTO, and it is often longer than anyone assumed.
- Write the steps down so someone else could follow them during an outage.
- Check that a failed backup actually alerts someone. GitLab's failure notices were emailed, but the emails were rejected, so "we were never aware of the backups failing, until it was too late". The same postmortem notes that because nobody owned the procedure, nobody was responsible for testing it.
Give the drill an owner and a date in the calendar. Like the weekly patching routine, it only works if it happens without anyone having to remember it.
Putting it together: a setup for a typical small product
- Your host's daily backups switched on, with the retention checked rather than assumed.
- Point-in-time recovery added if your recovery point objective is shorter than a day.
- A scheduled job that writes an encrypted dump every night to storage in a separate account.
- Uploaded files copied or versioned on their own schedule, since the database backup won't include them.
- An alert on any failed backup job, sent somewhere a person actually reads.
- The restore drill above, in the calendar every quarter, with its timing written down.
Frequently asked questions
How often should a small product back up its database?
At least daily for most products, more often if your recovery point objective is shorter. If losing even an hour of data would hurt, use point-in-time recovery, which restores to a chosen moment instead of the last nightly copy.
Are my hosting provider's backups enough?
They are a good first layer, but they live in the same account as production and follow its defaults. Check the retention period, what is excluded (often uploaded files) and what happens if the database is deleted, then add one copy outside that account.
How long should we keep backups?
Long enough to notice a problem. Silent data corruption or an accidental deletion can go unnoticed for days, so a few weeks of daily backups is a sensible minimum; legal or contract requirements may ask for longer.
What is point-in-time recovery?
It replays the database's change log so you can restore to a specific moment, for example one minute before a bad migration ran. On Supabase it is an add-on for paid plans with a worst-case recovery point objective of two minutes; in PostgreSQL it is built on continuous archiving.
Sources
- Postmortem of database outage of January 31, GitLab, February 2017
- Disaster Recovery of Workloads on AWS: Business Continuity Plan, Amazon Web Services, 2026
- Database Backups, Supabase Docs, 2026
- Introduction to backups, Amazon RDS User Guide, 2026
- Backup and Restore, PostgreSQL 18 Documentation, 2026
- #StopRansomware Guide, CISA, September 2023

