@echo off
rem $Id: BackupDB.bat,v 1.3 2001/06/16 11:40:56 rameshj Exp $


rem This script is used to take standalone backup of your data. This scipt will create backup file with the name BackUp_**.data under <WebNMS>/backup directory.



cd ..\..\
call .\setEnv.bat
set CLASSPATH=
set CLASSPATH=%NMS_CLASSES%;%XML_CLASSPATH%;%DB_CLASSPATH%;

rem Usage : java jdbc.BackUpImpl [-n <number_of_records>]
rem Note: the argument number_of_records denote only the number of records to be written to the file at a time. But, the database records are fetched fully in a single query only.

%JAVA_HOME%\bin\java -Dmysql.home=%MYSQL_HOME% -Dwebserver.rootdir=%WEBSERVER_HOME% -Dwebnms.rootdir=%NMS_HOME% -DseparateJVM=true jdbc.BackUpImpl %1 %2 %3 %4
cd bin\backup
pause
