Restore a daily backup
To see your backups, go to More → Database, select Manage, then Backups. Each row shows when the backup was taken, in UTC. Lovable takes one backup per day and keeps up to roughly 14 days of them. A backup covers the database only, so a restore does not change the files in storage. The closest restore point is the most recent backup taken before the problem. Click Restore to this backup on a row and confirm. Lovable rolls the project’s database back to that point, structure and data. The database is unavailable for a few minutes while the restore runs. When the restore finishes, ask Lovable in the project chat to test your app and fix any mismatch between the code and the restored database. Anyone with edit access to the project can restore a backup. On Enterprise plans, every restore is recorded in your workspace audit log. A restore always replaces the same project’s database.Export your database
Use the export when you need a copy of the whole database, for example to keep your own backup or before you move your backend to another provider. Anyone who can manage the project’s settings can export. The export contains your full database, both structure and data. It also includes your users’ accounts and their password hashes, the scrambled form in which passwords are stored. It does not include files in storage, edge function code, secrets, sign-in provider settings, or your project’s API keys, so plan to move those separately. The export is a compressed PostgreSQL archive that a developer or your new provider’s import tool loads into a new database withpg_restore. For a copy you can open yourself, download a single table as CSV from the Database view instead. See Edit records.
Open Database settings
Open the export dialog
Start the export
Download the export
Move your backend to another provider
Lovable does not transfer a project to another backend in one step. To move, export your database, download your storage files from More → Storage, and move your code with Git sync. You set up authentication, secrets, environment variables, and any external services again at the destination. Moving a backend is developer work. If you don’t write code yourself, ask Lovable in the project chat to walk you through the steps, or plan for a developer to help. If you restore the export into a Supabase project, your users keep their passwords. Users who are signed in when you switch need to sign in again, so test that sign-in works after restoring. See Supabase’s guide to migrating users between projects. For a step-by-step walkthrough, see Host backend and data on a managed provider. To connect your own Supabase project to a Lovable project instead, see Supabase. Removing the database deletes your export and your files, so download and verify them first. When the move is done, you can remove the database so the project stops using credits for it.FAQ
Do backups include storage files, edge functions, and sign-in settings?
Do backups include storage files, edge functions, and sign-in settings?
How often is my database backed up?
How often is my database backed up?
Can I restore an export into my own Postgres or Supabase project?
Can I restore an export into my own Postgres or Supabase project?
.backup file. Load it with pg_restore, not with psql, using PostgreSQL 16 or newer tools, because older ones refuse the compression. Test it in a separate Supabase project you own first.In the new project, set up sign-in providers and API keys again, copy your uploaded files separately, and test sign-in before you move traffic. A restore into plain PostgreSQL can need extra setup for Supabase roles, extensions, and internal schemas. See Move your backend to another provider.Does restoring a backup bring back deleted user accounts?
Does restoring a backup bring back deleted user accounts?
- People who signed up after the backup lose their accounts.
- Password changes made after the backup are undone.
- Uploaded files stay in storage, but the records describing them go back too, so files added after the backup stop appearing in your app.
Does a restore bring back my scheduled jobs and email sending?
Does a restore bring back my scheduled jobs and email sending?
Can I restore my own pg_dump file into the project?
Can I restore my own pg_dump file into the project?
What carries over when I move to my own Supabase project?
What carries over when I move to my own Supabase project?