]> git.proxmox.com Git - pve-container.git/commitdiff
skip pending changes while taking backup
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 14 Oct 2019 08:28:46 +0000 (10:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 18:44:36 +0000 (20:44 +0200)
we can only clone the current state of container (without pending
changes), as otherwise the on-disk state might not match the
configuration. this also makes it more consistent to qemu-server
behavior.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
src/PVE/VZDump/LXC.pm

index ad5ecc8de4e6d553c905834eaf3854acbebbf347..2a6449c84fc0df363f56b98d0c6823a6ebf6baaa 100644 (file)
@@ -288,6 +288,7 @@ sub assemble {
     delete $conf->{lock};
     delete $conf->{snapshots};
     delete $conf->{parent};
+    delete $conf->{pending};
 
     PVE::Tools::file_set_contents("$tmpdir/etc/vzdump/pct.conf", PVE::LXC::Config::write_pct_config("/lxc/$vmid.conf", $conf));