S Sylv1 New Member Jun 11, 2013 2 0 1 Jun 11, 2013 #1 Hello all, I want to restore a qemu vm with the api. Must i use the 'archive' param and which is the format? I've tried to specify storage:backup/vm.lzo and vm.lzo but that don't work. Thanks in advance ! Last edited: Jun 12, 2013
Hello all, I want to restore a qemu vm with the api. Must i use the 'archive' param and which is the format? I've tried to specify storage:backup/vm.lzo and vm.lzo but that don't work. Thanks in advance !
dietmar Proxmox Staff Member Staff member Apr 28, 2005 17,298 723 253 Austria www.proxmox.com Jun 12, 2013 #2 Sylv1 said: I want to restore a qemu vm with the api. Must i use the 'archive' param and which is the format? Click to expand... # pvesm list <storeid> --content backup
Sylv1 said: I want to restore a qemu vm with the api. Must i use the 'archive' param and which is the format? Click to expand... # pvesm list <storeid> --content backup
S Sylv1 New Member Jun 11, 2013 2 0 1 Jun 12, 2013 #3 Hi Dietmar, I've made more tries yesterday, it works like this (PHP example) : Code: $vm['vmid'] = 123; $vm['archive'] = 'tmp:backup/123.vma.lzo; $vm['storage'] = "local"; $pve2->post("/nodes/xyz/qemu", $vm); Thanks for your reply !
Hi Dietmar, I've made more tries yesterday, it works like this (PHP example) : Code: $vm['vmid'] = 123; $vm['archive'] = 'tmp:backup/123.vma.lzo; $vm['storage'] = "local"; $pve2->post("/nodes/xyz/qemu", $vm); Thanks for your reply !