Hello,
we have to migrate our VMs between two Proxmox clusters (clusterA/clusterB).
To do it, we will have the same backup storage defined in the 2 clusters.
And we want to do the migration by a backup on the clusterA and a restore on the clusterB.
Firstly, is it the good way to migrate a VM between two clusters ?
Secondly, as we have to do it several times, we want to have an automatic procedure to do it.
About this procedure I have two questions:
Firstly, for the backup we want to use the REST API ( POST /api2/json/nodes/{node}/vzdump )
But how to get the archive file name created with the API ?
For me, the only way seems to be parsing the task logs.
But is there a better solution ? (logs parsing is never a stable solution)
Secondly, I don't find how to do a restore with the REST API.
Did I miss something in the REST API documentation ? ( I use http://pve.proxmox.com/pve2-api-doc/ )
If I can’t do the restore by the REST API, what do you suggest me to do ?
Thanks in advance for your help,
Olivier
we have to migrate our VMs between two Proxmox clusters (clusterA/clusterB).
To do it, we will have the same backup storage defined in the 2 clusters.
And we want to do the migration by a backup on the clusterA and a restore on the clusterB.
Firstly, is it the good way to migrate a VM between two clusters ?
Secondly, as we have to do it several times, we want to have an automatic procedure to do it.
About this procedure I have two questions:
Firstly, for the backup we want to use the REST API ( POST /api2/json/nodes/{node}/vzdump )
But how to get the archive file name created with the API ?
For me, the only way seems to be parsing the task logs.
But is there a better solution ? (logs parsing is never a stable solution)
Secondly, I don't find how to do a restore with the REST API.
Did I miss something in the REST API documentation ? ( I use http://pve.proxmox.com/pve2-api-doc/ )
If I can’t do the restore by the REST API, what do you suggest me to do ?
Thanks in advance for your help,
Olivier