]> git.proxmox.com Git - pve-container.git/commitdiff
warn about unsupported backup configuration
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 30 May 2016 12:40:22 +0000 (14:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Jun 2016 05:43:45 +0000 (07:43 +0200)
src/PVE/API2/LXC.pm

index a259eec06c5a46f7c47e2c9bf7450f9445c0f2e1..1316fbf1e47095e19328b6c746295c27c7044731 100644 (file)
@@ -335,6 +335,13 @@ __PACKAGE__->register_method({
                                $mountpoint->{volume} = "$storage:$disksize";
                                $mp_param->{$ms} = PVE::LXC::Config->print_ct_mountpoint($mountpoint, $ms eq 'rootfs');
                            } else {
+                               my $type = $mountpoint->{type};
+                               if ($mountpoint->{backup}) {
+                                   warn "WARNING - unsupported configuration!\n";
+                                   warn "backup was enabled for $type mountpoint $ms ('$mountpoint->{mp}')\n";
+                                   warn "mountpoint configuration will be restored after archive extraction!\n";
+                                   warn "contained files will be restored to wrong directory!\n";
+                               }
                                $delayed_mp_param->{$ms} = PVE::LXC::Config->print_ct_mountpoint($mountpoint, $ms eq 'rootfs');
                            }
                        });