don't create swap snapshot
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 2 Oct 2014 12:25:31 +0000 (14:25 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 2 Oct 2014 12:25:31 +0000 (14:25 +0200)
vmdk-backup.pl

index 14b8994..e66193f 100755 (executable)
@@ -64,6 +64,7 @@ while(<$lvs>) {
                next;
        }
        push @lv_create, "lvcreate --name $name --size $size $vg_backup";
+       next if $name =~ m/swap/;
        push @lv_create, "lvcreate --snapshot /dev/$vg/$name --name ${name}-snap --size 100M";
        push @lv_remove, "/dev/$vg/$name-snap";
 }