From f681ca0d1806571888ce3b3564d0b49b35bb80b6 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Fri, 20 Nov 2020 15:50:45 +0100 Subject: [PATCH] vzdump: pass along exclude patterns to proxmox-backup-client to make the behavior consistent across modes. Previously vzdump's exclude-path option only had an effect for suspend mode backups, as then the exclusion already happens when rsync copies the data during an earlier stage in the backup. Signed-off-by: Fabian Ebner --- src/PVE/VZDump/LXC.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index eb07430..b7f7463 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -389,6 +389,7 @@ sub archive { } push @$param, '--skip-lost-and-found' if $userns_cmd; + push @$param, map { "--exclude=$_" } @$findexcl; push @$param, '--backup-type', 'ct'; push @$param, '--backup-id', $vmid; -- 2.39.5