[pve-devel] [PATCH manager 2/4] add 'pbs-entries-max' to permission check & config
Alexander Zeidler
a.zeidler at proxmox.com
Tue Jun 13 15:42:52 CEST 2023
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 at proxmox.com>
---
PVE/API2/Backup.pm | 2 +-
configs/vzdump.conf | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Backup.pm b/PVE/API2/Backup.pm
index cae889f4..4fd495e2 100644
--- a/PVE/API2/Backup.pm
+++ b/PVE/API2/Backup.pm
@@ -49,7 +49,7 @@ sub assert_param_permission_common {
raise_param_exc({ $key => "Only root may set this option."}) if exists $param->{$key};
}
- for my $key (qw(bwlimit ionice performance)) {
+ for my $key (qw(bwlimit ionice performance pbs-entries-max)) {
if (defined($param->{$key})) {
$rpcenv->check($user, "/", [ 'Sys.Modify' ]);
last;
diff --git a/configs/vzdump.conf b/configs/vzdump.conf
index 2ea09ae0..2fbf3999 100644
--- a/configs/vzdump.conf
+++ b/configs/vzdump.conf
@@ -16,3 +16,4 @@
#exclude-path: PATHLIST
#pigz: N
#notes-template: {{guestname}}
+#pbs-entries-max: N
--
2.39.2
More information about the pve-devel
mailing list