]> git.proxmox.com Git - pve-zsync.git/commitdiff
fix #1301 skip if mp has no backup flag.
authorWolfgang Link <w.link@proxmox.com>
Wed, 15 Mar 2017 10:57:49 +0000 (11:57 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 17 Mar 2017 14:34:08 +0000 (15:34 +0100)
pve-zsync

index 38357a5209d4c07a672b98d6d34809bf522be84a..bc06ae12cddfd433523306318275f8f5658dfddd 100644 (file)
--- a/pve-zsync
+++ b/pve-zsync
@@ -778,7 +778,7 @@ sub parse_disks {
        next if $vm_type eq 'qemu' && ($line =~ m/backup=(?i:0|no|off|false)/);
 
        #LXC if backup is not set do no in sync
-       $error = ($line =~ m/backup=(?i:1|yes|on|true)/) if $vm_type eq 'lxc';
+       next if $vm_type eq 'lxc' && ($line =~ m/^mp\d:/) && ($line !~ m/backup=(?i:1|yes|on|true)/);
 
        my $disk = undef;
        my $stor = undef;