Closed Bug 1901526 Opened 4 months ago Closed 3 months ago

Add a backup scheduling mechanism

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

This mechanism will be pretty simple to start with, and is modelled after the PlacesBackup bookmarks backup mechanism:

  1. Not long after startup, scan the snapshots (bug 1901523) folder, and find the most recent backup. Cache the backup date in #_state.
  2. After (1), set up an idle observer.
  3. For each idle, if browser.backup.scheduled.enabled is true, check if the current timestamp between the last backup and the current time is greater than 1 hour (this difference should be contained in a preference / FeaturesManifest.yaml so we can tweak it). If so, start a backup. Once the backup is done, update the most recent backup timestamp in #_state.
Assignee: nobody → mconley
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7302e2035534 Build out backup scheduling mechanism. r=backup-reviewers,kpatenio,sthompson
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: