© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
decruz

Best way to clone a database for testing?

Currently we have 2 separate databases running (dev and production). I want to clone the production database to test our migration changes on it first, before we push the same to our actual production.

What's the best practice to handle this? I was thinking of cloning the whole public and auth schema in our current production, but I'm not sure if it would totally work since I'm not sure which schemas are closely tied with the actual supabase project.
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

Best way to copy a dev database over to a new production project?
SupabaseSSupabase / help-and-questions
4y ago
Best Practice for dev database
SupabaseSSupabase / help-and-questions
6mo ago
About testing database function
SupabaseSSupabase / help-and-questions
6mo ago
What's the best way to versioning the database function
SupabaseSSupabase / help-and-questions
4mo ago