[pve-devel] [PATCH container 5/5] vzdump: pass along exclude patterns to proxmox-backup-client

Fabian Ebner f.ebner at proxmox.com
Fri Nov 20 15:50:45 CET 2020


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 <f.ebner at proxmox.com>
---
 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.20.1






More information about the pve-devel mailing list