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

feat: support restoring local db from backup #3015

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

sweatybridge
Copy link
Contributor

@sweatybridge sweatybridge commented Jan 6, 2025

What kind of change does this PR introduce?

feature

What is the new behavior?

  1. Download a logical backup from hosted project
  2. Restore to a new local database
supabase db start --from-backup db_cluster.backup

Additional context

Add any other context or screenshots.

@sweatybridge sweatybridge requested a review from a team as a code owner January 6, 2025 04:07
@coveralls
Copy link

coveralls commented Jan 6, 2025

Pull Request Test Coverage Report for Build 12626377511

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 9 of 33 (27.27%) changed or added relevant lines in 2 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 59.501%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/db/start/start.go 8 32 25.0%
Files with Coverage Reduction New Missed Lines %
internal/gen/keys/keys.go 5 12.9%
Totals Coverage Status
Change from base Build 12618770776: -0.1%
Covered Lines: 7672
Relevant Lines: 12894

💛 - Coveralls

Copy link
Member

@avallete avallete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sweatybridge sweatybridge merged commit 805dcd0 into develop Jan 7, 2025
13 checks passed
@sweatybridge sweatybridge deleted the restore branch January 7, 2025 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants