- $Status{$host}{reason} = "Reason_backup_failed";
- $Status{$host}{error} = $1;
- $Status{$host}{errorTime} = time;
- $Status{$host}{endTime} = time;
- print(LOG $bpc->timeStamp, "Backup failed on $host ($1)\n");
+ $Status{$host}{error} = $1;
+ $Status{$host}{errorTime} = time;
+ $Status{$host}{endTime} = time;
+ if ( $Status{$host}{reason}
+ eq "Reason_backup_canceled_by_user" ) {
+ print(LOG $bpc->timeStamp,
+ "Backup canceled on $host ($1)\n");
+ } else {
+ $Status{$host}{reason} = "Reason_backup_failed";
+ print(LOG $bpc->timeStamp,
+ "Backup failed on $host ($1)\n");
+ }