Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: backup cancel action sometimes in some cases

towfiqi113aefde9593
diff --git a/backend/src/managers/handlers/BackupHandler.ts b/backend/src/managers/handlers/BackupHandler.ts
index 2e36efe..da02c71 100644
--- a/backend/src/managers/handlers/BackupHandler.ts
+++ b/backend/src/managers/handlers/BackupHandler.ts
@@ -133,14 +133,9 @@ export class BackupHandler {
const errorMessage = error instanceof Error ? error.message : 'Unknown execution error';
// If Cancelled by the user, do not retry or mark as failed.
- const isCancelled = errorMessage.startsWith('BACKUP_CANCELLED:');
+ const isCancelled =
+ errorMessage.startsWith('BACKUP_CANCELLED:') || this.cancelledBackups.has(planId);
if (isCancelled) {
- this.emitter.emit('backup_complete', {
- planId,
- backupId,
- success: false,
- summary: null,
- });
return '';
}