04 · Data · From How to Scale Your Vibe-Coded SaaS
Can I recover my vibe-coded app's data if something goes wrong?
You can recover your data only if you have restored a backup into a separate environment and checked that the records came back correct. A backup file that has never been restored is a hope, not a plan. For a vibe-coded SaaS the risks compound: a migration the AI generated and nobody reviewed can drop a column in production, and ownership of customer records is often enforced in one screen and nowhere else.
Your database is not just storage. It is part of your product promise. Good data practice covers ownership, migrations, retention, backups, and restores, and the only one of those you can skip is none of them.
Why AI-built apps lose data
- Migrations generated and applied in one step, with no review and no rollback. The tool was asked to add a field and rewrote the table.
- Managed backups that are on by default and have never been restored, so nobody knows whether they contain what matters or how long a restore takes.
- Tenant ownership enforced in the dashboard query but not in search, export, or the weekly report job.
- Deletion that is a button in the interface and nothing else. Nobody has decided what deleting a customer actually means.
Pass one: inventory critical data
List customer-owned tables, files, billing records, and third-party systems that hold copies. Mark where tenant ownership is enforced, where data is copied, and what deletion means for your product. Most founders find at least one copy of customer data they had forgotten about.
Pass two: review change and recovery
Check migration review, database constraints, backup schedule and access, retention, and the restore procedure. Then test a restore into a separate environment using approved, protected data. Never restore a shared snapshot over live tenant data.
Pass three: prove the result
Validate record counts or checksums where appropriate, access rules, application behaviour, and the time the restore took. Write down the recovery point and recovery time the business can actually tolerate. If a four-hour restore is unacceptable, you have just found a fix-now item.
Evidence to save
- A data map.
- A migration rollback plan.
- The most recent restore result and how long it took.
- The retention decision.
- The list of people who can access backups.
How I would do it
For Launchboard, I would test that a new project belongs to the right customer account from creation through search, export, and the weekly report, since ownership that holds in one place and leaks in another is the data bug I see most. Then I would restore last night's backup into an isolated environment and confirm both the data and the access controls came back correct. Only then would I trust the backup setting in the hosting dashboard.
Data review prompt
Inspect the schema, migrations, backup configuration, and data flows for [core journey] without modifying data. Identify customer-owned records, where ownership is enforced, risky migrations, and untested recovery assumptions. Propose a staging restore drill and validation checklist. Do not query or copy real customer records, run migrations, or restore backups. Mark unknowns clearly and identify decisions that require a human owner.
Questions founders ask
Supabase, Neon, or my host takes backups automatically. Isn't that enough?
It is a good start and not enough. You need to know what the backup contains, how far back it goes, who can access it, and how long a restore takes. The only way to know is to restore one into a separate environment and check.
How often should I test a restore?
Before launch, after any change to the schema or the backup setup, and on a calendar after that. Quarterly is a reasonable floor for a small SaaS. Write the date of the last test in the risk register.
Should I let the AI run migrations?
Let it draft them. A human reviews the migration, the rollback, and the effect on existing rows before anything touches production. A migration is one of the few changes that cannot be undone by redeploying the previous version.