Execute backup via API

K

kusman

Guest
I am trying to use the API to execute backups. For openVZ it is all clear as vzdump is available via the API, but is there a similar option for KVM? It seems that from the web interface I can do the backup, but the API section doesn't seem to have that option (I am looking here: http://pve.proxmox.com/pve2-api-doc/).

If there is such an option, could you please point me to the API description for it.
 
Hey,

is the existing vzdump endpoint also compatible with the new PBS system for creating new QEMU backups?

It would be also a "nice to have" feature to set an API alias endpoint for backups which behaves similar to the snapshot endpoint.

For Example:

List Backups:
GET /api2/json/nodes/{node}/qemu/{vmid}/backup
as an alias for /api2/json/nodes/{node}/storage/{storage}/content [vmid = {vmid}, storage filter, all by default for example]

Create Backup:
POST /api2/json/nodes/{node}/qemu/{vmid}/backup
as an alias for /api2/json/nodes/{node}/vzdump [vmid = {vmid}]

Restore Backup:
POST /api2/json/nodes/{node}/qemu/{vmid}/backup/rollback
as an alias for /api2/json/nodes/{node}/qemu [vmid = {vmid}, archive, .. ]

kind regards
Linus
 

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!