Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Database Backup as Restore Point For Local Development and Debugging #2736

Open
ScottAtRedHawk opened this issue Oct 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ScottAtRedHawk
Copy link

Is your feature request related to a problem? Please describe.
My team came across a bug and we were going to use a database backup from a couple days ago to see the data in the database at that time. We can't find an easy, straightforward way, using the CLI, to start the Supabase project locally but simply using the backup file as the data source. It has a lot of commands in the backup that error out if we try to use it on an existing Supabase project locally. We've tried running supabase db reset without applying any migrations because they should be in the backup, and that still didn't work.

Describe the solution you'd like
It would be nice to have a supabase db restore command that would accept a backup file from the Supabase dashboard and restore the local database according to the data in the backup file.

Describe alternatives you've considered
We've tried following this guide https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects#restore-to-your-new-project, but it seems a little overkill for and not quite the behavior we require.

Additional context
None.

@sweatybridge sweatybridge added the enhancement New feature or request label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants