]> git.proxmox.com Git - pve-container.git/commitdiff
fix #3069: vzdump: add 'pbs-entries-max' parameter
authorAlexander Zeidler <a.zeidler@proxmox.com>
Fri, 28 Jul 2023 13:28:56 +0000 (15:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Sep 2023 14:49:18 +0000 (16:49 +0200)
configuring pbs-entries-max can avoid failing backups due to a high
amount of files in folders where a folder exclusion is not possible

Signed-off-by: Alexander Zeidler <a.zeidler@proxmox.com>
src/PVE/VZDump/LXC.pm

index 5783ffaf342f783c077d02d54812ea43bd0f4be1..c68a06ffed391a0c74f813936b1a5bc340b086b9 100644 (file)
@@ -395,6 +395,12 @@ sub archive {
        push @$param, '--backup-id', $vmid;
        push @$param, '--backup-time', $task->{backup_time};
 
+       if (my $entries_max = $opts->{"performance"}->{"pbs-entries-max"}) {
+           push $param->@*, '--entries-max', $entries_max;
+           $self->loginfo(
+               "set max number of entries in memory for file-based backups to $entries_max");
+       }
+
        my @storage = ($opts->{scfg}, $opts->{storage});
 
        my $logfunc = sub { my $line = shift; $self->loginfo($line) };