Backing up your Lovable app's database
THE APP IS A PROMPT AWAY FROM REBUILT — THE DATABASE ISN'T
Lovable's magic is that the app is disposable: lose it, fork it, regenerate it, the prompts rebuild it this afternoon. The database underneath has the opposite property. It's a real Supabase Postgres project — yours, not Lovable's — holding the one thing no prompt can regenerate: your users' data. This page is the five-minute safety net for it.
What Lovable keeps vs what you must keep
- Lovable keeps the app — code, prompt history, project versions. All recoverable from Lovable itself.
- Supabase keeps the database running — but its backup rules apply: on the free tier there are no automated backups at all, and Pro keeps about a week, on-platform. (The full picture: Supabase backup, mapped.)
- Nobody keeps an off-site, restore-tested copy — unless you set one up. That's the gap.
The Lovable-specific risk: the approval click
Every time you prompt a feature that touches existing data, Lovable proposes a schema migration and you click approve. That flow is the product working as intended — and it's also the riskiest moment your data has. A column rename that's actually a drop-and-recreate, a “cleanup” that cascades — they look exactly like every other approval. You won't catch it by reading the SQL more carefully (if you wanted to read SQL, you wouldn't be using Lovable). You catch it by making the click safe: seal a checkpoint before approving anything that touches existing tables, and the worst case becomes “restore the table from two minutes ago.”
Set it up in five minutes
- Find your Supabase connection string. Your Lovable app's data lives in your own Supabase project. Open supabase.com → your project → Project Settings → Database → Connection string (URI tab). Use the direct connection or session-mode pooler on port 5432.
- Paste it into OffsiteDB. Sign up, paste the connection string, and pick a schedule. Optionally point backups at your own S3/R2/B2 bucket — or use the managed vault while trialing.
- First proven backup runs in minutes. OffsiteDB dumps, encrypts, and ships the snapshot, then restores it into a real Postgres and counts the rows. Your dashboard says 'proven', not 'uploaded'.
- Click 'Back up now' before approving big schema changes. When Lovable proposes a migration that touches existing tables, seal a checkpoint first. If the change goes wrong, you restore just the damaged tables from minutes ago.
Want your copies in storage you own? Any of the Supabase bucket guides walk through it — R2 is the usual pick (no egress fees).
Keep shipping at prompt speed
Start free — paste one connection string, get your first proven backup in minutes. Or see the live demo first.
FAQ
Doesn't Lovable back up my app already?
Where exactly is my Lovable app's database?
I approve the migrations Lovable suggests. Isn't that enough review?
I'm not technical. How hard is the restore if something goes wrong?
Does this work with Supabase's free tier?
Keep reading
- A database safety net for AI-built SaaS — the broader playbook
- Back up before the migration — the checkpoint habit, including the CI version
- Building with Bolt instead? — same safety net, Bolt edition