[pve-devel] [PATCH manager] vzdump: don't double exclude-paths from the config

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Mar 3 09:46:12 CET 2016


The exclude list is built from both the command line
parameters and the config. If no excludes are passed on the
command line we previously copied the defaults to it,
effectively passing them twice.
---
 PVE/VZDump.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 937d896..218b033 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -565,6 +565,7 @@ sub new {
     $opts->{remove} = 1 if !defined($opts->{remove});
 
     foreach my $k (keys %$defaults) {
+	next if $k eq 'exclude-path'; # dealt with separately
 	if ($k eq 'dumpdir' || $k eq 'storage') {
 	    $opts->{$k} = $defaults->{$k} if !defined ($opts->{dumpdir}) &&
 		!defined ($opts->{storage});
-- 
2.1.4





More information about the pve-devel mailing list