How to back up a Supabase database on the free plan
The free plan has no automatic daily backups. Export roles, schema and data with the Supabase CLI, and copy Storage files separately.
Updated 2026-10-16. Written from the vendor docs linked at the end. Not a guarantee that a restore will work.
What the free plan does not keep for you
Supabase documents daily backups for Pro, Team and Enterprise projects. Pro keeps 7 days, Team 14 days, and Enterprise up to 30 days. Point-in-time recovery is a paid add-on. The same guide says free projects should regularly export with the CLI and keep the files somewhere that is not the project. The pricing page lists automatic backups as not included on Free.
A free project can also pause. Supabase pauses Free plan projects with low database activity over a 7-day period. You can resume from the dashboard for up to a year, and the project comes back with its data and configuration. After more than a year, Studio can no longer restore it. Download the database backup and the Storage objects from the project overview before it is deleted.
Deleting the project is worse than a pause. Supabase says deletion permanently removes the data, including backups stored for that project. Do the export before you delete, and do not treat a paused project as a backup.
What you need before the dump
If you use LastGood, you do not type a database password. After the backup pull request is merged, open the connect wizard for that repository, connect Supabase and choose the project. LastGood writes the Session pooler URL into the repository and does not keep a copy.
The official backup guide uses the Supabase CLI, and the CLI runs pg_dump inside Docker. Install the CLI and Docker Desktop first. The connection string steps are under Advanced, for a dump you run yourself.
Advanced: copy the connection string yourself
On the project dashboard, open Connect and copy the Session pooler connection string. Use port 5432 and a host such as aws-0-ap-southeast-2.pooler.supabase.com. Do not use the direct host db.[PROJECT-REF].supabase.co. That host is IPv6-only, and a GitHub-hosted runner fails with Network is unreachable. Do not use the transaction pooler on port 6543. The pooler username must include the project ref. Copy the string from your own Connect panel. The region in an example is only an example.
The password is the database password, not the anon key and not the service-role key. Reset it under Database settings if you do not have it, then replace [YOUR-PASSWORD] in the string. Percent-encode characters that are not safe in a URL. Keep that string out of the repository, out of a Lovable or Bolt chat, and out of a screenshot.
Take the three dumps Supabase documents
One command is not enough. The CLI reference says a default supabase db dump excludes managed schemas such as auth and storage, and it does not contain data or custom roles. The backup guide therefore runs three commands. Replace the connection string. Do not commit the files if they contain rows about your users.
supabase db dump --db-url [CONNECTION_STRING] -f roles.sql --role-onlysupabase db dump --db-url [CONNECTION_STRING] -f schema.sqlsupabase db dump --db-url [CONNECTION_STRING] -f data.sql --use-copy --data-only -x storage.buckets_vectors -x storage.vector_indexesAuth users and Storage files are not in those SQL files
The CLI’s own reference says the dump ignores auth, storage, and schemas created by extensions. The backup guide also says custom changes you made inside auth and storage, such as a trigger or a policy, have to be restored separately with supabase db diff. People in auth.users are not a table you should assume is inside data.sql.
Uploaded files are not rows you can rely on that dump to recreate. The same backup guide has a section for copying Storage objects between projects. If the project has already been paused for more than a year, Supabase’s troubleshooting page says to download Storage from the project overview and copy it with supabase storage cp. Download those files before you remove the project.
If the database uses Vault or column encryption, Supabase says to copy the root encryption key while the project is still active. Once it is paused or deleted, that API no longer returns the key, and data encrypted with it cannot be read. The steps are in the backup and restore guide. Do that before you pause.
Where to keep the files
Put the SQL and the Storage download in a place you control: an encrypted disk, or a private bucket that is not the same Supabase project. A public GitHub repository is the wrong place for a dump of user rows. It is also the wrong place for the connection string.
A second copy of the code is a different job. The free scan reads a public repository and looks for a backup workflow, a lockfile, committed env files and secrets in client code. It does not open your database, and it cannot see a dump that lives only on your laptop. Run it on the repo. Then check that the dump files exist somewhere else, and that you could find them without signing in to this Supabase project.
Restore into a new project, not over the only copy
Supabase’s restore steps create a new project, turn on extensions and database webhooks you actually used, and load the three files with psql in one transaction. The published command is below. Use a connection string for the new project, and stop if a statement fails rather than loading half a file.
psql --single-transaction --variable ON_ERROR_STOP=1 --file roles.sql --file schema.sql --command 'SET session_replication_role = replica' --file data.sql --dbname [CONNECTION_STRING]After the restore
That command sets session_replication_role to replica so triggers do not run twice during the data load. It does not, by itself, bring Storage files, Edge Functions, or secrets across. Copy those on purpose. Sign in to the new project and check a table you care about before you point the app at it.
Write down the date of the dump next to the files. A free project has no daily backup to fall back on, so the newest dump you hold is the newest restore point you have.
Questions
Does the Supabase free plan include automatic backups?
No. Supabase’s backup guide says daily backups are for Pro, Team and Enterprise projects, and it tells free projects to export with supabase db dump and keep an off-site copy. The pricing page lists automatic backups as not included on Free.
Does pausing a free project delete the data?
Not straight away. Supabase says you can resume a paused free project from the dashboard for up to a year, and that the project returns with its data and configuration. After more than a year, Studio can no longer restore it. Download the database backup and Storage files before the project is deleted. Deleting a project removes the data and the backups Supabase held for it.
Does the CLI dump include auth users and uploaded files?
No. The CLI runs pg_dump with flags that exclude Supabase-managed schemas, including auth and storage, and the default dump has no data and no custom roles until you pass the flags in the backup guide. Files in Storage buckets are a separate copy. A dump of public tables is not a full copy of the project.
Sources
Related
Vendor limits quoted above are from those docs, not measurements by LastGood.