[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 !
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!