TL;DR: A backup you have never restored is a hope, not a backup. For a small product I want four things: automatic backups of the main database with point-in-time recovery switched on, a copy of those backups somewhere a single bad credential cannot delete, everything that is not in the database (file storage, workflow definitions, CRM data, config) listed and covered too, and one rehearsed restore into a separate environment with the time it took written down. That last step is the one almost everyone skips, and it is the only one that tells you whether the first three work.
Most small teams think about backups once, when they tick a box in the database console, and then never again. That is usually fine, right up until the day someone runs a migration against the wrong environment, a script deletes more rows than it should, or a client asks "can you get back what this looked like last Tuesday?" On that day the question is not whether you had backups. It is how long it takes to get a working product back, and how much data you lose on the way.
I have built and run backends on Firebase, AWS, MongoDB and PostgreSQL for my own products like LectureNotes AI and Lifemaxxing AI, for the mobile apps and web portal I lead at RAQTS, and for client voice agent systems that span Retell, n8n and GoHighLevel. This is the setup I put in place on every one of them now, and the reasoning behind each piece.
Start with two numbers, not a tool
Before choosing anything, answer two questions with the founder or client:
- How much data can we afford to lose? If the database died right now, is losing the last 24 hours acceptable? The last hour? The last five minutes? This is what ops people call the recovery point objective.
- How long can we be down? Is half a day of downtime survivable, or does every hour cost bookings, revenue or trust? This is the recovery time objective.
For most small products the honest answers are "a few minutes of data, at most" and "a few hours of downtime, at most". Those answers rule out the most common setup I find when inheriting a codebase: a nightly export, if anyone remembers to check it is running, and no idea how long a restore would take.
The numbers also stop you over-building. A student app does not need a multi-region hot standby. It does need to lose less than a day of people's notes.
Layer one: the database, with point-in-time recovery
Every managed database I use offers automatic backups, and most offer point-in-time recovery, which lets you restore to any moment inside a window rather than only to last night's snapshot. Turn it on. On a small product the cost is low and it changes "we lost a day" into "we lost a few minutes".
What that looks like on the stacks I work with:
- PostgreSQL on AWS RDS or a managed host: automated backups with a retention window, plus point-in-time restore inside that window. Set the retention to the longest you can justify, because problems are often discovered days after they happen.
- MongoDB Atlas: cloud backups with snapshots and, on the tiers that support it, continuous backup for point-in-time restore.
- Firestore: point-in-time recovery and scheduled backups both exist but are not on by default. On a Firebase project I enable them explicitly and add a scheduled managed export to a Cloud Storage bucket, so there is a copy in a format I can inspect outside the console.
The details change between providers and over time, so check the current docs for yours. The rule does not change: if you have not deliberately turned on and configured backups, assume you have weaker ones than you think.
Layer two: a copy your own mistakes cannot reach
Provider backups usually live in the same account as the database. That protects you from hardware failure and from a bad query. It does not protect you from the account itself: a leaked admin key, a compromised laptop, a teammate deleting the project, or an unpaid invoice that suspends everything.
So I keep a second copy somewhere separate:
- A scheduled export to storage in a different account or project, written by a credential that can add files but cannot delete them.
- Versioning or retention locks on that bucket, so even an overwrite keeps the old copy for a set period.
- Encryption, and an access list short enough that you can name everyone on it.
This is also where backups meet API keys and secrets on client projects. The credential that can delete your production database should not also be the one that can delete its backups. If one leaked key can wipe both, you have one copy, not two.
Layer three: everything that is not in the database
This is where small products are most exposed, because the database is the only thing anyone thinks of. Before I call a backup plan done, I write a short inventory of every place the product's state lives and how each one comes back.
File storage
User uploads, recordings, generated documents, images. On a recording app like LectureNotes AI the audio files matter at least as much as the rows that point to them, a point I came back to in recording long audio in a mobile app. I turn on object versioning or soft delete on the storage bucket, so a bad cleanup job can be undone, and I make sure database restores and file restores can be lined up by time. A restored database pointing at files that no longer exist is a different kind of broken.
Workflows and automations
On voice agent projects a lot of the logic lives outside the codebase: n8n workflows, Retell agent configurations, prompts, and GoHighLevel pipelines and automations. I export n8n workflows and agent configs as JSON into the project's git repository on every meaningful change, which doubles as version history. When I covered handing a voice agent over to a client, this was part of the package: if the platform account disappears, the build can be recreated.
Third-party systems of record
A CRM like GoHighLevel holds contacts, notes and pipeline stages that the business depends on. You do not control its backups. You can control whether you have a regular export of the data that matters, and whether that export lives somewhere you own. The same goes for call recordings and transcripts: check how long your voice platform keeps them, and copy the ones you need to keep before they age out. More on owning these pieces in what to own when a developer builds your software.
Config and infrastructure
Environment variables, DNS records, store listings, push notification keys, signing certificates. Most of these are not "backed up", they are documented. A file in the repo that lists every one, where it lives and who can change it, is enough. Losing a mobile signing key, for example, is not a data loss, but it can stop you shipping updates to the app you already have.
Layer four: the restore rehearsal
Here is the step that matters most and gets done least. Once, before launch or in the first month, restore the production backup into a separate environment and time it. Then do it again a couple of times a year.
The rehearsal always finds something. Typical findings:
- The restore takes far longer than expected, because the database is bigger than when the backup was configured, or because indexes rebuild slowly.
- Nobody remembers the steps. Restoring to a point in time usually creates a new database instance, and then the app has to be pointed at it. That involves connection strings, secrets and deploys that nobody has written down.
- Something is missing. The database comes back, but the files, a background job's state or a config value does not.
- Migrations do not line up. The restored data is from before a schema change that the current code expects.
I write the result into a short runbook in the repo: the exact steps, the commands, who has the access to run them, and how long it took. A runbook that has been run once is worth ten that have not. It sits alongside the alerts I described in error monitoring and alerting, because the fastest restore still starts with knowing something went wrong.
Preventing the restore in the first place
Most data loss on small products is not a disk failure. It is a person or a script doing something to production they meant to do somewhere else. A few cheap habits prevent most of it:
- Separate production and staging projects, with production credentials that are not on every developer's machine by default.
- Migrations reviewed and tested against a copy of production data before they run for real. This is one of the specific things I look for in code review on a small team.
- Soft deletes for user-facing data, so "I deleted it by mistake" from a user is a one-line fix, not a restore.
- A kill switch for risky jobs, like the ones in feature flags and kill switches, so a bulk job that starts going wrong can be stopped mid-run.
One honest caveat. If users can ask you to delete their data, your backups hold that data for as long as your retention window. Keep the window reasonable, and say in your privacy policy that deleted data ages out of backups within a stated period. I am not a lawyer, so check what applies in your markets, but the engineering answer is usually a fixed, documented retention rather than trying to edit old backups.
The checklist
For a small product, before or soon after launch:
- Agree how much data you can lose and how long you can be down, in plain words.
- Automatic database backups with point-in-time recovery on, and the longest sensible retention.
- A second copy in a separate account or project, written by a credential that cannot delete.
- Versioning or soft delete on file storage.
- Workflows, agent configs and prompts exported to git; CRM and call data exported on a schedule.
- A documented list of config, keys and certificates, and where each lives.
- One timed restore into a separate environment, written up as a runbook, repeated a couple of times a year.
None of this is glamorous, and on a good day none of it is visible. It is part of what I mean by software maintenance after launch: the work that decides whether a bad Tuesday is an inconvenience or the end of the product.
I build mobile apps, AI products, voice agent systems and the backends behind them for startups and agencies in the US, UK and Europe, and I set them up so a bad deploy or a deleted table is recoverable. If you want that on a new build, or a review of how your current product would survive a restore, read more about my background or book a call.