I am currently using vSphere vCenter 4.0.0 (162856), ESX 4.0.0 (175625) and Veeam Backup 4.0. I made a fresh VM (W2k3 32-bit) to test pre-freeze and post-thaw script funtionality but cannot see any evidence on script launhing when Veeam Backup initiates Snapshot.
Backup script is "test.bat" and is located in "c:\program files\vmware\vmware tool\backupscript.d" folder. VM has VMware Tools installed (4.0.0 193498). According to VMware documents this setup should be correct.
In Veeam Backup job has "Enable VMware tools quiescence" enabled and I am using Veeam VSS. Backup mode is vStorage API (SAN with Failover). Backup runs fine and I can see Microsoft and Veeam VSS components doing their job in the event log and SQL test database shows I/O correctly forzen in the application log. However, the script never kicks off.
What am I missing?
Here is the backup script:
Code: Select all
@echo off
if "%1%" == "" goto noparam
if "%1%" == "freeze" goto freeze
if "%1%" == "thaw" goto thaw
if "%1%" == "freezeFail" goto freezeFail
goto wrongparam
:freeze
echo "Freeze" >> c:\test.txt
goto end
:thaw
echo "Thaw" >> c:\test.txt
goto end
:freezeFail
echo "freezeFail" >> c:\test.txt
goto end
:noparam
echo "Parameter not specified" >> c:\test.txt
goto end
:wrongparam
echo "Invalid parameter" >> c:\test.txt
:end
echo "End reached" >> c:\test.txt
exit