Having issues restoring a database from one project to another
-------------------------------------------------------------------------------------------------------- EDIT: Looks like i did not read the documentation properly, and there is an entry about migrating storage objects, which sounds like it will solve my issue, sorry! --------------------------------------------------------------------------------------------------------------- Hello everyone,
I want to set up a smooth workflow for restoring one database from one project to another database in another project.
where $cstarget is my target database connection string
and the way i dumped the .sql files was:
supabase db dump --db-url $cssource -f roles.sql --role-onlysupabase db dump --db-url $cssource -f schema.sqlsupabase db dump --db-url $cssource -f data.sql --use-copy --data-only
supabase db dump --db-url $cssource -f roles.sql --role-onlysupabase db dump --db-url $cssource -f schema.sqlsupabase db dump --db-url $cssource -f data.sql --use-copy --data-only
where $cssource is my source db connection string.
I did not get any errors when dumping, i have gathered from previous posts in here, that it is related to storage and auth not getting reset using supabase db reset, however i don't see how i am then supposed to properly reset(and ideally, restore) these?
Ideally i want to reset and restore everything in the target database, so that it's 1:1 with the source database
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.