Need little help for vzdump-hook-script with windows agent

Mar 6, 2024
12
0
1
Hello together,

can someone provide me an quickfix how to use qm guest exec to an windows vm?

here is my code snippet:

# run diskshadow for simulating vss aware backup and truncate logs
if ($phase eq 'backup-end') {
if ($hostname eq 'server1') {
system("/usr/sbin/qm guest exec $vmid diskshadow.exe /s C:\\scripts\\exchange_truncate\\server1.vbs");
}
}

My problem is that the string is cut off after diskshadow /s, i read something in release notes that an array of string is needed since pve 8.x

But i cant find the clue how to format it correctly.

Thanks in advance.
 
Hello together,

can someone provide me an quickfix how to use qm guest exec to an windows vm?

here is my code snippet:

# run diskshadow for simulating vss aware backup and truncate logs
if ($phase eq 'backup-end') {
if ($hostname eq 'server1') {
system("/usr/sbin/qm guest exec $vmid diskshadow.exe /s C:\\scripts\\exchange_truncate\\server1.vbs");
}
}

My problem is that the string is cut off after diskshadow /s, i read something in release notes that an array of string is needed since pve 8.x

But i cant find the clue how to format it correctly.

Thanks in advance.
Really no one with Windows SQL or Exchange Servers with PBS as Backup System?
 

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!