i have seen the posts for the prefreeze scripts ,i tried these but it doesnt work.
What i am trying to do is to stop a Sybase DB when the backup starts and then to start it again.
Code: Select all
echo
echo %DATE%
echo %TIME%
set datetimef=%date:~-4%_%date:~3,2%_%date:~0,2%__%time:~0,2%_%time:~3,2%_%time:~6,2%
echo %datetimef% >> c:\vadp.log
if "%1%" == "" goto noparam
if "%1%" == "freeze" goto freeze
if "%1%" == "thaw" goto thaw
if "%1%" == "freezeFail" goto freezeFail
goto wrongparam
:freeze
REM before snapshot
echo "Freeze" >> %datetimef%
REM net stop "Sybase"
goto end
:thaw
REM after snapshot
echo "Thaw" >> %datetimef%
REM net start "Sybase"
goto end
:freezeFail
REM snapshot failed
echo "freezeFail" >> %datetimef%
goto end
:noparam
REM invalid program usage
echo "Parameter not specified" >> %datetimef%
goto end
:wrongparam
REM invalid program usage
echo "Invalid parameter" >> %datetimef%
:end
echo "End reached" >> %datetimef%
The script are in Windows folder and also at vmware tools folder.
is there anything that i should do?