Clone branch with tables schema and data, Authentication users and Storage

Hi all! I was trying to create a new branch and then have a clone of everything that's on the main branch but looks like this is not something we can do easily. Is there a way of doing this? So if I create a new branch I have the schema, but I also need the tables data, authentication users and storage. I've tried a bunch of things, but non of them worked properly.
6 Replies
Ad Intellegent
@Pedro Reis you’re trying to setup completely different database for a different branch?
Pedro Reis
Pedro ReisOP3w ago
yes, exactly
Ad Intellegent
@Pedro Reis then that’s simple but everytime you’re done you have to invest a bit to time to merge both bases which I guess would be difficult to manage
silentworks
silentworks3w ago
When you say branch here are you referring to the Supabase branching feature or a normal GitHub branch?
Pedro Reis
Pedro ReisOP3w ago
I was refering to the Supabase branching feature
Yojimbo
Yojimbo3w ago
It doesn't seem intuitive. I'm doing the same thing. Started on Main, then paid for supabase to branch out the databases based on environment, and you would think that it would allow us to clone the main to local or staging.

Did you find this page helpful?