Good morning everyone.
I'm looking at creating a test environment on a new Proxmox server (which we'll call server TEST) using some VMs from another Proxmox server (which we'll call server PROD).
Those servers aren't in the same cluster.
Currently, PROD can backup to a PBS instance, and TEST can restore from it. I've tried it manually, everything works great.
Is there a way to automate, via Ansible, the API, or a bash script, the restoration of multiple VMs from the PBS to TEST? The idea is to be able to "reset" TEST with a clean & current version of the VMs on PROD (which periodically backups to PBS, so that's taken care of), with minimal interaction needed.
I've looked at the API but it needs a specific filename for the restore file, and as such it can't be automated easily (or so I think).
Cheers.
I'm looking at creating a test environment on a new Proxmox server (which we'll call server TEST) using some VMs from another Proxmox server (which we'll call server PROD).
Those servers aren't in the same cluster.
Currently, PROD can backup to a PBS instance, and TEST can restore from it. I've tried it manually, everything works great.
Is there a way to automate, via Ansible, the API, or a bash script, the restoration of multiple VMs from the PBS to TEST? The idea is to be able to "reset" TEST with a clean & current version of the VMs on PROD (which periodically backups to PBS, so that's taken care of), with minimal interaction needed.
I've looked at the API but it needs a specific filename for the restore file, and as such it can't be automated easily (or so I think).
Cheers.