| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 | @echo offREM ###########################################################################REM #REM # Licensed Material - Property Of IBMREM #REM # "Restricted Materials of IBM"REM #REM # IBM Informix Dynamic ServerREM #REM # (c) Copyright IBM Corporation 1996, 2012 All rights reserved.REM #REM #  Title:       onbarREM #  Description: Wrapper script for Informix Backup and Restore (ON-Bar).REM #		Users may edit this script to customize backup andREM #		restore operations, including specific Storage ManagerREM #		setup and cleanup procedures.REM #REM ###########################################################################set SAVEPATH=%PATH%if x%ISMDIR% NEQ x goto contif exist %INFORMIXDIR%\bin\setism.bat call %INFORMIXDIR%\bin\setism.bat:contif DEFINED ISMDIR set PATH=%ISMDIR%\bin;%PATH%if DEFINED INFORMIXDIR goto goodenvecho You need to set the variable INFORMIXDIR in your Windows environmentgoto end:goodenvREM #############################REM # add startup processing hereREM #############################REM ########################REM # end startup processingREM ########################REM # Run the onbar driver%INFORMIXDIR%\bin\onbar_d %*set onbar_d_return=%errorlevel%REM #############################REM # add cleanup processing hereREM #############################REM # Default cleanup processing for the ISM:REM #	If we've just done a backup with the ISM, back up the ISM catalogs.REM #	It's safe to check %1 because onbar commands must start with -[blr].REM #	We ignore ism_catalog errors because we're not sure that the ISMREM #	is being used at this site or on a particular coserver.if "%1" == "-b" goto ismif "%1" == "-l" goto ismgoto skip:ismif NOT "%onbar_d_return%" == "0" goto skipif NOT DEFINED ISMDIR goto skipif NOT exist %ISMDIR%\bin\ism_catalog.exe goto skip%ISMDIR%\bin\ism_catalog -create_bootstrap -pool ISMData >NUL 2>NUL:skipREM ########################REM # end cleanup processingREM ########################REM # return the error from onbar_d%INFORMIXDIR%\bin\set_error %onbar_d_return%:endset PATH=%SAVEPATH%%INFORMIXDIR%\bin\set_error %onbar_d_return%
 |