Supabase hosts Postgres and a set of related services. A backup of one is not a backup of the others. This guide uses Supabase’s own documentation, checked on November 30, 2026, for what the platform keeps and what you should keep yourself. Plan names and retention can change. Confirm the numbers in your dashboard before you rely on them.
What Supabase keeps for you
Supabase documents automatic daily backups for Pro, Team, and Enterprise projects. In that documentation, Pro projects can access 7 days of daily backups, Team projects 14 days, and Enterprise projects up to 30 days. The backups are in Database, then Backups, in the dashboard.
Projects on Postgres 15.8.1.079 and newer use physical backups. Older projects have to be upgraded before they move to that process. Daily backups do not store passwords for custom roles. If you restore a daily backup and use custom roles, you reset those passwords afterward.
Point-in-time recovery is a paid add-on for Pro, Team, and Enterprise projects. Supabase describes it as physical backups plus write-ahead log files. By default those log files are backed up every two minutes, or sooner if they cross a size threshold. When the database is idle, new log files are not written. Supabase states that, in the worst case, this gives a recovery point objective of two minutes. Enabling point-in-time recovery stops the separate daily backups, because the finer-grained history replaces them.
A restore from the dashboard makes the project inaccessible while it runs. Downtime grows with the size of the database. Restoring a daily backup writes that backup onto the current project. For point-in-time recovery, Supabase says that restoring to an earlier moment replaces the current database state, and that you should restore to a new project first if you need to keep the current data.
Deleting a project permanently removes the associated data, including backups stored for that project. Export anything you still need before you delete it.
What those backups do not include
Database backups do not include objects stored through the Storage API. The database holds metadata about those objects. Restoring an old database backup does not bring back objects you deleted after that backup. Storage has to be copied separately. Supabase documents that transfer in the backup-and-restore guide.
A logical restore into a project you create yourself also does not carry over auth settings and API keys, database settings and extensions, or the root encryption key. Supabase states that backup files never contain that root key. They hold encrypted data. A new project starts with its own key, so Vault secrets and encrypted columns from the old project cannot be decrypted until the old key is copied with the documented API. Overwriting a project’s root key makes data encrypted under a different key unreadable. Read that section of the guide before you copy a key. Do not put the key in a chat, a ticket, or a repository.
Edge functions are also outside a database dump. The CLI can download a function, and Supabase notes that the download does not include import maps or deno.json. You add those back yourself.
Take a copy you can store yourself
Hosted backups live with the host. An independent copy is one you can download and put somewhere else: another disk, another account, or a bucket you control. Supabase recommends that free projects do this regularly, because they are outside the automatic daily backups described above. Paid projects should do it as well if they need a file they can hold onto after the retention window, or after the project is deleted.
Supabase’s CLI guide gives these three dumps. Replace the connection string with the one from your dashboard. Do not commit the connection string, and do not paste it into an AI coding session.
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"
Those are the commands in Supabase’s backup-and-restore guide as checked on November 30, 2026. Quote the connection string if your shell would split it. Confirm the flags with supabase db dump --help before you rely on a script. The CLI changes.
A database export is a copy of the data, so it needs its own protection.
- Encrypt the files at rest, and encrypt them while you move them. An unencrypted dump in a shared folder is a second copy of the database without the database’s access checks.
- Restrict who can read the files. They do not belong in the git repository, in an AI coding session, or on a drive the whole company can open.
- Treat the connection string as a credential. Take it from a secrets store for the dump, then close that session. Do not commit it, do not paste it into an AI coding session, and do not leave it beside the dump.
- Keep the files in an account or on media that does not depend on the Supabase project. Hosted backups are removed when the project is deleted, and daily backups expire with the plan’s retention window. Decide how many of your own dumps you keep, where they live, and when you delete them.
Store the three files together, with the date in the name.
PostgreSQL’s documentation describes the same family of logical dump, and two other families: a file-system copy of the data directory, and continuous archiving. The CLI commands above are the logical dump. They are the kind you can move. They are not a physical replica of the server.
Restore into a new project and look at the result
Supabase’s restore order for those files is: roles, then schema, then data, with session_replication_role set to replica while the data loads so triggers do not run a second time. The documented psql invocation uses --single-transaction and ON_ERROR_STOP=1.
Run that restore into an empty project, not over the project you are trying to save. Then check three things yourself:
- A table you care about has the row count you expect.
- A login or a row policy behaves the way the application expects.
- Custom role passwords were set again. The dump does not keep them.
That check is a restore rehearsal. It is a different fact from “the dump command finished.” The distinction is spelled out in backups versus verified recovery.
If the project uses point-in-time recovery and you later turn it off, Supabase says new backups remain physical and are not available for direct download. A file you can download then has to be a logical dump from the CLI or pg_dump.
A practical schedule
For a small project, a weekly logical dump plus a dump before every destructive migration is a reasonable start. For a project that takes orders or stores other people’s data, use the hosted retention you are paying for and a logical dump on a schedule you can explain. Write down where the files go, that they are encrypted, who can read them, how long you keep them, and the last date you restored one into a new project.
None of this is a Kryptlox service. The platform does not currently back up Supabase for customers.