[pve-devel] [PATCH container 1/3] exclude non-volume mps from backup

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed May 25 10:05:16 CEST 2016


even if backup is set to 1.

inform about excluded bind/dev/backup-disabled mountpoints
---
 src/PVE/LXC/Config.pm | 2 ++
 src/PVE/VZDump/LXC.pm | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 0bc20d1..933e6ca 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -49,6 +49,8 @@ sub mountpoint_backup_enabled {
 
     return 1 if $mp_key eq 'rootfs';
 
+    return 0 if $mountpoint->{type} ne 'volume';
+
     return 1 if $mountpoint->{backup};
 
     return 0;
diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index bf6c14e..ea91043 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -122,6 +122,7 @@ sub prepare {
 
 	if (!PVE::LXC::Config->mountpoint_backup_enabled($name, $data)) {
 	    push @$exclude_dirs, $mount;
+	    $self->loginfo("excluding $type mountpoint $name ('$mount') from backup");
 	    return;
 	}
 
-- 
2.1.4





More information about the pve-devel mailing list