[SOLVED] Restore with API

Sylv1

New Member
Jun 11, 2013
2
0
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:
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 !