Skip to content

Conversation

@nickcernis
Copy link
Contributor

@nickcernis nickcernis commented Dec 16, 2025

Migrates backups from the Local Hub-based storage to Dropbox-based storage.

See https://github.com/getflywheel/flywheel-local/pull/2270 for full description and testing steps.


Process involves no actual migration of backups content, only backups metadata:

  • Grab metadata from Hub.
  • Write backup metadata to Dropbox/Google Drive if the restic repo still exists (user could have deleted it manually, which won't delete corresponding metadata in Hub).
  • Re-key Restic repo with default password (user can optionally change this later in Local 10), retaining existing password.

Backups metadata is copied from Local Hub to Dropbox/Google Drive (and left in Hub, not deleted from there).

Migration is cancellable and re-runnable if the completion file is deleted. (If metadata already exists it will just be overwritten instead of creating a new file; if restic repo is already re-keyed, it's a no-op on subsequent runs).

Completion state is saved to ~/Library/Application\ Support/Local/backup-migration-completed.json (on macOS). Deleting that file allows migration re-runs.

@nickcernis nickcernis marked this pull request as ready for review December 16, 2025 17:29
@nickcernis nickcernis requested a review from a team as a code owner December 16, 2025 17:29
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.

2 participants