Skip to content

Backup & Sync: configurable daily backup time (default 1am)#13

Merged
ryanbr merged 1 commit into
mainfrom
snapshot-v8.2.2
Jul 7, 2026
Merged

Backup & Sync: configurable daily backup time (default 1am)#13
ryanbr merged 1 commit into
mainfrom
snapshot-v8.2.2

Conversation

@ryanbr

@ryanbr ryanbr commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Adds a user-set backup time-of-day on the Backup & Sync screen (TimeChip picker, default 01:00). BackupSyncPrefs.backupMinute + setBackupMinute; delayToNextBackupMs takes a minuteOfDay; applyTimeChange re-anchors on change. Android-only (iOS backs up on next launch). Compiles; BackupSyncTest 14 pass.

The daily auto-backup time was hardcoded to 01:00. Add a user-set time-of-day:
- BackupSyncPrefs.backupMinute (minutes since midnight, default BACKUP_MINUTE_OF_DAY = 60 = 01:00,
  clamped to a valid minute) + setBackupMinute.
- delayToNextBackupMs now takes a minuteOfDay param (defaults to 1am); reschedule() reads the pref.
- applyTimeChange() cancels + reschedules so a new time re-anchors immediately (KEEP alone would
  leave the old anchor).
- BackupSyncScreen: a "Backup time" row with the reusable TimeChip (TimePicker dialog); picking a
  time saves it + re-anchors. The auto-backup blurb now says "at the time below".

Android-only: iOS has no reliable timed background scheduler (it backs up on next app launch), so a
time picker there would be misleading — left as-is. Compiles; BackupSyncTest 14 pass (added a
chosen-time test; the 1am default test still holds).
@ryanbr ryanbr merged commit 149bbf7 into main Jul 7, 2026
@ryanbr ryanbr deleted the snapshot-v8.2.2 branch July 7, 2026 06:03
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.

1 participant