[pve-devel] [PATCH qemu-server] qmrestore: fix restore from STDIN

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu May 7 09:15:33 CEST 2020


the special case was dropped when moving this to pve-storage.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 PVE/QemuServer.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 8e3fadf..6461da3 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5655,6 +5655,9 @@ sub tar_restore_cleanup {
 sub restore_file_archive {
     my ($archive, $vmid, $user, $opts) = @_;
 
+    return restore_vma_archive($archive, $vmid, $user, $opts)
+	if $archive eq '-';
+
     my $info = PVE::Storage::archive_info($archive);
     my $format = $opts->{format} // $info->{format};
     my $comp = $info->{compression};
-- 
2.20.1





More information about the pve-devel mailing list