cli icon indicating copy to clipboard operation
cli copied to clipboard

Use Database Backup as Restore Point For Local Development and Debugging

Open ScottAtRedHawk opened this issue 1 year ago • 0 comments

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.

ScottAtRedHawk avatar Oct 08 '24 15:10 ScottAtRedHawk