Updater should create backup before download/install #3

Closed
opened 2025-12-11 03:59:13 +00:00 by 44r0n7 · 0 comments
Owner

Enhancement request: ensure the Pi-Kit updater creates a backup before starting the download/install step. This avoids losing the previous working state if the download or staging fails mid-way.

Suggested behavior:

  • When apply/update is triggered, first create a backup of current web + api + version files (same as rollback uses), then proceed to download/stage/install the new release.
  • If download or verification fails, keep the backup intact and leave the system unchanged.
  • If install fails after staging, auto-rollback to that backup.

Context: Rollback sometimes fails in the UI; having the backup created before fetch/install reduces risk and makes recovery deterministic.

Enhancement request: ensure the Pi-Kit updater creates a backup *before* starting the download/install step. This avoids losing the previous working state if the download or staging fails mid-way. Suggested behavior: - When apply/update is triggered, first create a backup of current web + api + version files (same as rollback uses), then proceed to download/stage/install the new release. - If download or verification fails, keep the backup intact and leave the system unchanged. - If install fails after staging, auto-rollback to that backup. Context: Rollback sometimes fails in the UI; having the backup created before fetch/install reduces risk and makes recovery deterministic.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 44r0n7/pi-kit#3