Skip to content

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

@ScottAtRedHawk

Description

@ScottAtRedHawk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions