Not to run any VM until the backup job is completed

amlanhldr

New Member
Jan 10, 2022
7
0
1
33
I have 2 VMs scheduled for a backup job in Stop Mode and I want not to run any of them while the backup job is still running. I think I have to play around the scripts, but cannot find a good way to start.
 
Last edited:
You could use a vzdump hook script and let that script shutdown the VMs ("qm shutdown ...") in the "job-init" phase when the job starts and start them again ("qm start ...") in the "job-end/job-abort" phase when the backup job finishes.
 
  • Like
Reactions: amlanhldr

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!