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.
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.