Your supabase backup looks simple in the dashboard: there is a backup row, a restore button, and a comforting feeling that production is safe. Then the first real incident happens. A table is restored, but user files are still gone, a custom database role cannot log in, an Edge Function is missing, or the project is down while the restore runs.
That is the gap most AI-built apps discover too late. Supabase backups are real, but they are database backups. They are not a complete copy of the product you shipped.
AI builders make the gap wider. Lovable, Cursor, Replit or Bolt can produce a working app before anyone has decided what “recoverable” means. The AI creates tables, storage buckets, auth rules, functions and keys as separate moving parts. It does not automatically design your recovery point, your downtime budget, or your restore drill.
supabase backup covers the database, not the whole product
Supabase automatically backs up paid projects daily. Pro projects can access the last 7 days of daily backups, Team projects the last 14 days, and Enterprise projects up to 30 days. Free projects do not get automatic daily backups; Supabase recommends regular CLI exports and off-site copies.
Even on a paid plan, the important word is still database. A database backup does not include the actual objects users uploaded through the Storage API. The database contains storage metadata, but restoring an older database does not recreate files that were deleted after that backup.
Daily backups also do not store passwords for custom roles. If your app or another service uses custom Postgres roles, you must reset those passwords after a restore. A logical CLI restore is even narrower in practice: storage objects and settings, Edge Functions, auth settings and API keys, Realtime settings, extensions and project settings need separate attention.
Physical, logical and PITR are different promises
Supabase uses two broad backup types. Logical backups export database contents in a portable form. Physical backups copy the database storage layer and are used for larger databases, newer Postgres versions, read replicas and PITR. A physical backup can be restored, but it is not a file you simply download and inspect.
Point-in-Time Recovery is a paid add-on for Pro, Team and Enterprise projects. It combines physical backups with write-ahead log archiving. Supabase backs up WAL files about every two minutes, or sooner when transaction volume crosses a threshold, so the worst-case recovery point objective is around two minutes. PITR can restore to a precise moment, but enabling it replaces daily backups because PITR is more granular.
That precision has a cost in operational impact. Restoring to an earlier point replaces the current database state. Changes after the restore point are not included, and the project is inaccessible during the restoration. If you need to inspect the past without sacrificing the present, restore to a new project first.
Why AI-built apps usually fail the restore test
The generated app often “works” because every piece exists once, in the current project. Nobody can answer these questions:
- How much data can we lose: one day, one hour, or two minutes?
- How long can the app be down while restoration runs?
- Which buckets contain user files that are not in the database backup?
- Which custom roles, cron jobs, extensions or Edge Functions must be recreated?
- Who knows the database password and where are the off-site exports?
- Has anyone restored successfully into a clean project, or are we trusting the button?
A backup that has never been restored is a hope, not a recovery plan.
The backup audit click path
- Write down the loss budget. Choose a recovery point objective before touching settings. “We can lose one day” points to daily backups or exports. “We cannot lose ten minutes of orders” points to PITR.
- Write down the downtime budget. Restoration takes time and the project is inaccessible during it. Decide whether you can restore production directly or must restore into a new project and inspect first.
- Check the plan and backup type. Open Database → Backups in the Supabase Dashboard. Confirm whether you see daily backups, PITR, or nothing because the project is on the free plan.
- Inventory what is outside the database. List Storage buckets, Edge Functions, auth providers, custom roles, database extensions, Realtime publications, cron jobs, webhook secrets and API keys. Anything in that list needs its own recovery step.
- Create a portable export when needed. Use the Supabase CLI for logical backups, especially on the free plan or when you need a file you control:
supabase db dump --remote=[CONNECTION_STRING] -f roles.sql --role-only
supabase db dump --remote=[CONNECTION_STRING] -f schema.sql
supabase db dump --remote=[CONNECTION_STRING] -f data.sql --use-copy --data-only -x "storage.buckets_vectors" -x "storage.vector_indexes"
- Store exports outside Supabase. Keep them in private, access-controlled storage. Never commit data dumps to a public repository: they can contain user emails, password hashes and business data, and git history keeps them even after deletion.
- Back up Storage separately. Download important bucket objects or replicate them to storage you control. Do not treat database metadata as the files themselves.
- Choose PITR deliberately. If transaction loss matters more than the add-on cost and direct-download simplicity, enable PITR on a paid plan and verify the earliest and latest recovery points in the dashboard.
- Run a real restore drill. Restore into a new or disposable project. Measure how long it takes, then test login, critical queries, file access, functions, webhooks and background jobs. Write down every manual step you had to repeat.
- Automate the boring repetition. A cron job or CI schedule can produce CLI dumps, upload them to private storage and alert when the job fails. A backup that silently stopped three months ago is not a backup.
What to check after a restore
Do not stop at “the tables are back”. Production recovery fails in the seams. Check whether auth users can sign in, whether password reset still works, whether custom roles need passwords, whether RLS policies still block anonymous writes, whether storage URLs point to existing objects, and whether Edge Functions and webhook secrets are present.
If the incident started with schema drift, repair that as a separate track. A restored database does not make your migration files truthful. Use the supabase migrations recovery order before pushing new schema changes. If missing files were the incident, the supabase storage policy guide helps you separate database recovery from object recovery.
Minimum recovery checklist
- The recovery point objective is written down in minutes or hours, not “we have backups”.
- The acceptable restore downtime is written down too.
- The project plan and backup type are known: free manual export, daily backup, or PITR.
- Logical exports exist when the team needs portable files.
- Exports are stored off-site in private storage and monitored for failure.
- Storage objects are backed up separately from the database.
- Custom roles, auth settings, Edge Functions, extensions, Realtime publications and webhook secrets have documented restore steps.
- Restore has been tested into a clean project, including login and file access.
- RLS is re-checked after every drill with the supabase rls checklist.
- The wider launch settings still follow the lovable deploy production checklist.
The right mental model is simple: Supabase can restore the database service, but only you can prove that the product around it comes back.
FAQ
Does a Supabase backup include Storage files?
No. Database backups include the Postgres database and storage metadata, not the objects stored through the Storage API. If a user-uploaded file was deleted after the backup, restoring the database does not bring that object back. Back up important buckets separately.
Is PITR the same as a downloadable backup?
No. Point-in-Time Recovery uses physical backups plus WAL files so you can restore the project to a chosen moment. It is not a portable backup file you can download. For a downloadable logical backup, use the Supabase CLI db dump command or pg_dump.
What should a free Supabase project do for backups?
Free projects do not get automatic daily backups. Export roles, schema and data regularly with supabase db dump, store the dumps off-site in private storage, and back up Storage objects separately. Test the restore into a disposable project before relying on it.