[pve-devel] [PATCH pve-container 2/7] honor backup=yes/no for bind and device mountpoints

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Nov 25 15:25:12 CET 2015


Initially we skipped bind and device mountpoints because we
didn't start out with a backup property. Now that it is
available it is more appropriate to give control back to the
user. The default is 'off' anyway.
---
 src/PVE/VZDump/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index 33b5c07..1a39983 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -116,7 +116,7 @@ sub prepare {
 	my $mount = $data->{mp};
 	my $type = $data->{type};
 
-	return if !$volid || !$mount || $type ne 'volume';
+	return if !$volid || !$mount;
 
 	if ($name ne 'rootfs' && !$data->{backup}) {
 	    push @$exclude_dirs, $mount;
-- 
2.1.4





More information about the pve-devel mailing list