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.zeid...@proxmox.com> --- Changes since v3: Apply Fiona's comment: * fix style (https://lists.proxmox.com/pipermail/pve-devel/2023-January/055365.html) Changes since v2: Apply Fiona's comments: * fix parameter check * fix both style nits Changes since v1: * reword loginfo message and include new set value * fix indentation src/PVE/VZDump/LXC.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 5783ffa..c68a06f 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -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) }; -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel