By Sascha Heyer · Last updated December 4, 2026
There are good reasons to move a Supabase project: a client takes ownership, you want a different region, you need a staging copy, or you are leaving a paused free project behind. Supabase gives you two routes: a dashboard clone on paid plans, and a dump and restore that works everywhere. Both leave some things behind.
Route 1: Restore to a New Project (paid plans)
In Database › Backups › Restore to a New Project, Supabase creates a new project from a physical backup of the current one. According to Supabase’s clone docs, as of December 2026:
- It is only for paid plans and needs physical backups on the source project.
- The new project stays in the same region, so it cannot move you to another region.
- It copies the schema, data, indexes, roles and auth users with their hashed passwords. It does not copy Storage objects (only their metadata), Edge Functions, Auth settings, API keys, Realtime settings or add-ons.
- It is a binary copy, so
pg_cronjobs start running in the clone as soon as it is up. Pause them in a staging clone before they email real customers.
Route 2: dump and restore (any plan, any region)
This is the route in Supabase’s backup-and-restore guide. Create the new project first, then dump the old one with the Supabase CLI (Docker must be running):
export OLD_DB_URL='postgresql://postgres.<old-ref>:<password>@aws-0-<region>.pooler.supabase.com:5432/postgres'
export NEW_DB_URL='postgresql://postgres.<new-ref>:<password>@aws-0-<new-region>.pooler.supabase.com:5432/postgres'
supabase db dump --remote="$OLD_DB_URL" -f roles.sql --role-only
supabase db dump --remote="$OLD_DB_URL" -f schema.sql
supabase db dump --remote="$OLD_DB_URL" -f data.sql --use-copy --data-onlyRestore all three in one transaction, with triggers and foreign key checks paused while data loads:
psql \
--single-transaction \
--variable ON_ERROR_STOP=1 \
--file roles.sql \
--file schema.sql \
--command 'SET session_replication_role = replica' \
--file data.sql \
--dbname "$NEW_DB_URL"If it stops on an error, nothing is half-loaded: fix the cause and run it again. Make sure the new project runs the same Postgres major version or a newer one. Older CLIs use --db-url instead of --remote.
Check the data arrived
Before you switch anything, compare row counts per table between old and new. The count query is in the restore guide; run it on both and diff the output. Pay attention to auth.users, auth.identities and storage.objects.
What you move by hand
- Storage files. Sync each bucket from the old endpoint to the new one with S3 tools; the Storage guide has the commands.
- Edge Functions and their secrets. Deploy from your repository with
supabase functions deployand set secrets again withsupabase secrets set. Secret values cannot be read back from the old project, so keep them somewhere you control. - Auth settings. Providers and their client secrets, redirect URLs, SMTP, email templates, rate limits.
- Vault secrets. Supabase’s guide says to fetch the old project’s root encryption key through the Management API before the old project is paused or deleted; without it, restored Vault secrets cannot be decrypted.
- Custom login roles. Their passwords are not in the dump. Set them again with
alter role … password. - Your app’s config. The project URL and API keys change. Update every environment and any webhook that calls the old project.
Users keep their passwords (the hashes move with the auth tables) but have to sign in again, because tokens signed by the old project are not valid on the new one. Details in exporting auth users.
Cut over
For a live app, schedule a short write freeze: stop writes (maintenance mode), take the final dump, restore, check counts, switch the app’s config, and only then delete or pause the old project. Keep the final dump file; it is your way back if something is missing a week later.
Keep a copy that is not in either project
A migration is when you most want a backup that does not depend on Supabase. Liferaft keeps daily copies of the old project outside Supabase, and on Solo and Agency it can restore any of them into an empty Supabase project in one go, even in another organization or region: schemas and data, auth users, Storage buckets and files and Edge Functions, with every table counted on the target and the secret names to set listed in the email. On every plan you can also download the .sql.gz and restore it with psql.
Rather not run this yourself? Liferaft runs the dump every night through a read-only role, stores the copy outside Supabase, and restores it every week to count every row. Free for one Supabase project; Solo is $9 a month for five. Back up my Supabase project free
Frequently asked questions
Does Supabase have a clone or restore-to-new-project button?
Yes, on paid plans: Database › Backups › Restore to a New Project creates a new project from a physical backup, in the same region. Storage objects, Edge Functions, Auth settings, API keys and add-ons are not copied, and the new project adds to your bill.
Will my auth users be able to log in after the migration?
Yes. The auth tables, including password hashes, move with the dump. Sessions and tokens issued by the old project stop working unless you reuse the JWT secret, so users sign in once more.
How do I move a project to another region?
Create a new project in the target region and use the dump and restore route in this guide. Restore to a new project keeps the original region.