© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2d ago•
51 replies
Fabrizio

sync local db with remote db

🌲branchingCLI🟢SQL
hey guys,

so, i've been using supabase straigth from dashboard and it was fine.... until yesterday... i want to start to use it with docker but i cannot sync it with remote... let me break it down

i've been using supabase writing sql queries on
sql editor
sql editor
on supabase dashboard... everything runs fine, no issues so far... but now i want to have a local db working but the local does not sync with remote. what i have done so far

-
supabase init
supabase init
on project folder
-
supabase start
supabase start
on supabase folder
-
config.toml
config.toml
has the
[analytics] enabled = true
[analytics] enabled = true
and more settings done
-
supabase login
supabase login
on project folder
-
supabase link --project-ref ... 
supabase link --project-ref ... 
with ref code , returns the message
Finished supabase link
Finished supabase link

-
supabase seed buckets --local
supabase seed buckets --local
and also
supabase seed buckets --linked
supabase seed buckets --linked
in the hope to get something and still nothing
-
supabase migration fetch  --linked
supabase migration fetch  --linked
also nothing
- supabase cli is on latest version
2.75.0
2.75.0


at this point i really thought local db would be synced with remote, but it didn't. My issue is basically the same on here,

still no luck... already deleted the docker containers & volumes, did this process several times and still, no luck at all...

then, i started to find something that could possibly help me, then i found this video https://www.youtube.com/watch?v=N0Wb85m3YMI - and tried to use it but the problem is, my migration folder on supabase has only a few migrations that i have done "" in the right way "" in the past, so they basically have only a few modifications done, not the whole database tables and triggers and functions and everything else.

so... i have a shell script to fetch all the tables and everything else from this project and i have them saved here... if i simply copy and paste them into my local supabase, this local will be kinda similar to my remote, but it won't be the full remote state... so, how can I fix this and start to using
YouTubeSupabase
Local Development and Database Branching // a more collaborative Su...
Day 2 - Supabase Local Dev: migrations, branching, and observability: https://supabase.com/blog/supabase-local-dev?utm_source=youtube&utm_medium=social&utm_term=launch-week-8&utm_content=N0Wb85m3YMI

Database Branching allows an ephemeral database to be created for every Git branch. This means entirely separate databases for Local Development, P...
Local Development and Database Branching // a more collaborative Su...
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
Was this page helpful?

Similar Threads

Recent Announcements
Next page

Similar Threads

sync remote db changes to local
SupabaseSSupabase / help-and-questions
4y ago
Can't connect to my remote db from my local dbeaver
SupabaseSSupabase / help-and-questions
13mo ago
CLI: Pull changes from remote on local DB
SupabaseSSupabase / help-and-questions
6mo ago
Remote DB Reset
SupabaseSSupabase / help-and-questions
4y ago