]> git.proxmox.com Git - pve-container.git/commitdiff
vzdump: pass along exclude patterns to proxmox-backup-client
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 20 Nov 2020 14:50:45 +0000 (15:50 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 24 Nov 2020 15:30:43 +0000 (16:30 +0100)
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@proxmox.com>
src/PVE/VZDump/LXC.pm

index eb07430e11cc32bab6c9ef1e46f7fd5775b95560..b7f7463d00b42d7d0402d4a57c642ee0bef9aa57 100644 (file)
@@ -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;