Hi
I'm trying to achieve to run a Script before and after the Backup Snapshot of a Windows VM. I can run successfully the Script within the Console of the Host, but I don't figure out how I can run this in the right order.
Command run order:
This works but took too long until the Post Script runs. Is the a possibility to run the Post Script immediately after the Snapshot inside the "vzdump 102 --mode=snapshot --compress zstd" Command was done?
Or is there another way to run the single steps that are done inside the vzdump command?
I'm trying to achieve to run a Script before and after the Backup Snapshot of a Windows VM. I can run successfully the Script within the Console of the Host, but I don't figure out how I can run this in the right order.
Command run order:
Code:
qm guest exec 102 -- "powershell.exe" "-File" "C:\scripts\backup_pre.ps1"
vzdump 102 --mode=snapshot --compress zstd
qm guest exec 102 -- "powershell.exe" "-File" "C:\scripts\backup_post.ps1"
This works but took too long until the Post Script runs. Is the a possibility to run the Post Script immediately after the Snapshot inside the "vzdump 102 --mode=snapshot --compress zstd" Command was done?
Or is there another way to run the single steps that are done inside the vzdump command?