© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
1 reply
loup

How completely migrate from one supabase project to another (self hosted)

Okay I try but without success to completely move my supabase instance to another server. For now Ive just try to migrate
roles
roles
and
schema
schema
(
data
data
is gonna be after that). So I have my 2 files
.sql
.sql
but when I try to push them in the new database I have all kind of error saying for example :
psql \                                                                    ─╯
  --single-transaction \
  --variable ON_ERROR_STOP=1 \
  --file roles.sql \
  --dbname "postgres://admin:password@myhost:port/db"

SET
SET
SET
psql:roles.sql:7: ERROR:  role "supabase_realtime_admin" already exists
psql \                                                                    ─╯
  --single-transaction \
  --variable ON_ERROR_STOP=1 \
  --file roles.sql \
  --dbname "postgres://admin:password@myhost:port/db"

SET
SET
SET
psql:roles.sql:7: ERROR:  role "supabase_realtime_admin" already exists

But is doing the same thing for table in
schema.sql
schema.sql
that doesnt exist in the new one so Im completely lost...

Thx for helping !
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

migrate an existing Supabase project from one Supabase account
SupabaseSSupabase / help-and-questions
3mo ago
What's the best way to migrate hosted Supabase to self-hosted Supabase?
SupabaseSSupabase / help-and-questions
4y ago
How to migrate changes from one remote instance to another using supabase-cli?
SupabaseSSupabase / help-and-questions
4y ago
Self-Hosted Supabase (Coolify)
SupabaseSSupabase / help-and-questions
2mo ago