vdzump: log with what retention settings we prune

may not be obvious from the task log alone if we're relying on the
retention setting configured on a storage or the ones from local
node's vzdump.conf

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-06-17 17:55:50 +02:00
parent f2e174dacc
commit ca155141b0

View File

@ -995,8 +995,9 @@ sub exec_backup_task {
debugmsg ('info', "archive file size: $cs", $logfd);
}
# purge older backup
if ($opts->{remove}) {
my $keepstr = join(', ', map { "$_=$prune_options->{$_}" } sort keys %$prune_options);
debugmsg ('info', "prune older backups with retention: $keepstr", $logfd);
if (!defined($opts->{storage})) {
my $bklist = get_backup_file_list($opts->{dumpdir}, $bkname, $task->{target});
PVE::Storage::prune_mark_backup_group($bklist, $prune_options);