add protected info of snapshots to api and task logs
adds the info that a snapshot is protected to: * snapshot list * manual pruning (also dry-run) * prune jobs Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
db4b469285
commit
02db72678f
@ -63,12 +63,12 @@ pub fn prune_datastore(
|
||||
group.backup_id()
|
||||
);
|
||||
|
||||
for (info, mut keep) in prune_info {
|
||||
if keep_all { keep = true; }
|
||||
for (info, mark) in prune_info {
|
||||
let keep = keep_all || mark.keep();
|
||||
task_log!(
|
||||
worker,
|
||||
"{} {}/{}/{}",
|
||||
if keep { "keep" } else { "remove" },
|
||||
mark,
|
||||
group.backup_type(),
|
||||
group.backup_id(),
|
||||
info.backup_dir.backup_time_string()
|
||||
|
Reference in New Issue
Block a user