Closed Bug 1891596 Opened 3 months ago Closed 2 months ago

Add `recoverFromBackup` to BackupService

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

This method should have the following signature:

/**
  * Creates a new named profile and processes a decompressed backup
  * that exists at recoveryPath. The backup is then recovered into a the
  * newly created profile.
  *
  * @param {string} recoveryPath
  *  The path on the file system where the backup has been decompressed.
  */
async recoverFromBackup(recoveryPath) {
}

For each folder inside of the backup, the appropriate BackupResource should be instantiated, and recover called on it (see bug 1888436). Resources that do not implement recover will throw, and recoverFromBackup should log and handle that like the backup case.

This method shouldn't try to launch the newly created profile.

Blocks: 1890574
Assignee: nobody → mconley
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/91e1779d2633
Add initial recoverFromBackup method to BackupService. r=backup-reviewers,kpatenio
Regressions: 1893362
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: