Skip to content

K2GO-384 feat(backup): real cancel + clean up the incomplete file - #537

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/K2GO-384-backup-cancel
Sep 4, 2026
Merged

K2GO-384 feat(backup): real cancel + clean up the incomplete file#537
luisguzman-adfa merged 1 commit into
mainfrom
feat/K2GO-384-backup-cancel

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

The backup's Cancel now actually stops the work and cleans up, and it has an on-screen button -- it was notification-only, and a fake cancel that marked the job done while tar kept running and then reported "Backup failed".

  • BackupEngine.streamBackup takes a cancel token; the read loop kills tar mid-stream. Backup is read-only, so cancel is always safe (no phases, no hold).
  • On cancel (or any failure that left an incomplete/damaged archive) the terminal removes the SAF file and, for a user cancel, returns to the bifurcation (CANCELLED) instead of a failure screen. A backup that finished just before the cancel took effect keeps its file.
  • Cleanup is automatic (a partial gzip'd tar is useless and unresumable); the on-screen confirm dialog only guards an accidental tap.
  • New cancel strings translated to 33 locales (machine-generated, pending review).

The backup's Cancel now actually stops the work and cleans up, and it has an
on-screen button -- it was notification-only, and a fake cancel that marked the
job done while tar kept running and then reported "Backup failed".

- BackupEngine.streamBackup takes a cancel token; the read loop kills tar
  mid-stream. Backup is read-only, so cancel is always safe (no phases, no hold).
- On cancel (or any failure that left an incomplete/damaged archive) the terminal
  removes the SAF file and, for a user cancel, returns to the bifurcation
  (CANCELLED) instead of a failure screen. A backup that finished just before the
  cancel took effect keeps its file.
- Cleanup is automatic (a partial gzip'd tar is useless and unresumable); the
  on-screen confirm dialog only guards an accidental tap.
- New cancel strings translated to 33 locales (machine-generated, pending review).
@luisguzman-adfa
luisguzman-adfa merged commit 2ac50d7 into main Sep 4, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/K2GO-384-backup-cancel branch September 4, 2026 13:01
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