How to back up a Lovable app's data
Lovable keeps every version of your code and can push it to GitHub. None of that contains your data. The people who signed up, the rows they created and the files they uploaded sit in the backend, and a Lovable app has one of two: Lovable Cloud, or a Supabase project in your own account.
Check which backend your app uses
If you can open the project in your own Supabase dashboard, the app uses your own Supabase project. If the database is only reachable through Lovable, it runs on Lovable Cloud.
| Lovable Cloud | Your own Supabase project | |
|---|---|---|
| Who runs the infrastructure | Lovable | You, in your Supabase account |
| Backups and pausing | Handled inside Lovable Cloud | Managed by you in Supabase |
| Export | Export data in the Cloud advanced settings | pg_dump, the Supabase CLI or a backup service |
| ReviveDB can connect | No | Yes, through Supabase OAuth |
Lovable's Supabase integration documentation puts backups, instance size and pausing on your side once you use your own project.
If your app runs on Lovable Cloud
Lovable Cloud is built on Supabase, but the project sits in Lovable's account rather than yours. According to Lovable's backup documentation, it takes one backup per day and keeps roughly 14 days of them. Backups and exports cover the database only. Files in storage, Edge Function code and secrets are not included, and a restore always replaces the database of the same project.
If the data matters, download the export and your storage files now and then, and keep them somewhere other than Lovable. Moving to your own Supabase project later is possible, but Lovable does not do it in one step and describes it as developer work. See Lovable's guide to moving your backend.
ReviveDB only connects to projects in your own Supabase organization, so we cannot back up a Lovable Cloud backend.
If your app uses your own Supabase project
Then your app follows the normal Supabase rules. Lovable does not change them:
- Free projects get no automatic backups. See how to back up Supabase on the free plan.
- Paid plans get daily database backups, kept for 7 days on Pro. They do not include the bytes of Storage files.
- Free projects are paused after a week with too little database activity. A prototype you showed to three people and then left alone is exactly that. See what happens when a Supabase project is paused.
- Supabase backups live inside the project they protect. Deleting the project removes them too.
Just moved off Lovable Cloud?
After a migration, your new Supabase project is the only copy of your data. Check these before you rely on it:
- Every file arrived. Storage is exported separately from the database, so check that each bucket and its files made it across.
- Functions are deployed. Edge Functions are not part of Lovable's database export. Check that each one is deployed in the new project and responds.
- Secrets and sign-in work. Secrets, sign-in providers and redirect addresses are set up again in the new project. Sign in as a test user to confirm.
- Your first backup exists. Supabase's own backups start on paid plans and leave out your files, so set up a copy outside the project from the first day.
What a backup of a Lovable app should contain
| Component | What a Lovable app typically keeps there |
|---|---|
| Database | The tables Lovable created through its migrations, and their rows |
| Auth | Users who signed up or logged in |
| Storage files | Uploads, avatars and generated images |
| Edge Functions | Server-side code, such as calls to payment or AI APIs |
| Secrets | API keys you added; only their names can be recorded, the values must be re-entered |
A pg_dump gets you the first two rows of that table. The rest needs a separate copy.
Backing up a Lovable app with ReviveDB
Connect the Supabase project behind your Lovable app through Supabase OAuth. You do not paste a service-role key. ReviveDB backs up the database and Auth, Storage files, Edge Function code and deploy metadata, along with Storage bucket settings, stores each recovery point in the EU and restore-tests the database of every backup in an isolated PostgreSQL instance. Your live project is not affected.
The Free plan covers one project with a weekly backup plus one manual backup per day, and keeps the latest three recovery points. If you are about to give Lovable a prompt that rewrites your tables, start a manual backup first.