[pve-devel] applied: [PATCH container] allow restoring non-volume backups again

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Mar 16 08:55:48 CET 2020


this got broken with PBS integration patches

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
https://forum.proxmox.com/threads/proxmox-6-1-7-pct-restore-unable-to-parse-volume-id.67076/

 src/PVE/LXC/Create.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index 22a6e76..9faec63 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -253,7 +253,7 @@ sub recover_config_from_tar {
 sub restore_configuration {
     my ($vmid, $storage_cfg, $archive, $rootdir, $conf, $restricted, $unique, $skip_fw) = @_;
 
-    my ($storeid, $volname) = PVE::Storage::parse_volume_id($archive);
+    my ($storeid, $volname) = PVE::Storage::parse_volume_id($archive, 1);
     if (defined($storeid)) {
 	my $scfg = PVE::Storage::storage_config($storage_cfg, $storeid);
 	if ($scfg->{type} eq 'pbs') {
-- 
2.20.1





More information about the pve-devel mailing list