prune mark: preserve additional information for the keep-all case
Currently, if an entry is already marked as 'protected'. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
committed by
Fabian Grünbichler
parent
f1de828166
commit
9a4c0e8471
@ -1663,6 +1663,8 @@ sub prune_mark_backup_group {
|
|||||||
|
|
||||||
if ($keep->{'keep-all'} || scalar(@positive_opts) == 0) {
|
if ($keep->{'keep-all'} || scalar(@positive_opts) == 0) {
|
||||||
foreach my $prune_entry (@{$backup_group}) {
|
foreach my $prune_entry (@{$backup_group}) {
|
||||||
|
# preserve additional information like 'protected'
|
||||||
|
next if $prune_entry->{mark} && $prune_entry->{mark} ne 'remove';
|
||||||
$prune_entry->{mark} = 'keep';
|
$prune_entry->{mark} = 'keep';
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user