Automating VM restore and homologation

Tacioandrade

Renowned Member
Sep 14, 2012
124
19
83
Vitória da Conquista, Brazil
Good night, I would like to know if anyone here on the forum has started to implement some way to automate the process of restoring some proxmox backups (mainly from PBS) from time to time ...
I say this because previously full backups just believe that the chances of having problems would be less, so I wanted to start implementing a policy for approval of backups once a week for example without having to spend hours to do the process manually.
 
did you already see https://pve.proxmox.com/wiki/Proxmox_VE_API ?
so the restore can be done via api and can be automated
I've looked at the API a few times, in most cases to integrate with Zabbix and get information for monitoring PVE and VMs.
I hadn't looked at the backup or restore part of the backup via the API. I'll see if I can assemble something in shellscript.