backup.bat revision 0
2N/A
2N/A@echo off
2N/Arem CDDL HEADER START
2N/Arem
2N/Arem The contents of this file are subject to the terms of the
2N/Arem Common Development and Distribution License, Version 1.0 only
2N/Arem (the "License"). You may not use this file except in compliance
2N/Arem with the License.
2N/Arem
2N/Arem You can obtain a copy of the license at
2N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
2N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2N/Arem See the License for the specific language governing permissions
2N/Arem and limitations under the License.
2N/Arem
2N/Arem When distributing Covered Code, include this CDDL HEADER in each
2N/Arem file and include the License file at
2N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2N/Arem add the following below this CDDL HEADER, with the fields enclosed
2N/Arem by brackets "[]" replaced with your own identifying * information:
2N/Arem Portions Copyright [yyyy] [name of copyright owner]
2N/Arem
2N/Arem CDDL HEADER END
2N/Arem
2N/Arem
2N/Arem Portions Copyright 2006 Sun Microsystems, Inc.
2N/A
2N/Asetlocal
2N/A
2N/Aset DIR_HOME=%~dP0..
2N/Aset INSTANCE_ROOT=%DIR_HOME%
2N/A
2N/Aif "%JAVA_BIN%" == "" goto noJavaBin
2N/Agoto setClassPath
2N/A
2N/A:noJavaBin
2N/Aif "%JAVA_HOME%" == "" goto noJavaHome
2N/Aif not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
2N/Aset JAVA_BIN="%JAVA_HOME%\bin\java.exe"
2N/Agoto setClassPath
2N/A
2N/A:noJavaHome
2N/Aecho Error: JAVA_HOME environment variable is not set.
2N/Aecho Please set it to a valid Java 5 installation.
2N/Agoto end
2N/A
2N/A
2N/A:setClassPath
2N/AFOR %%x in (%DIR_HOME%\lib\*.jar) DO call "%DIR_HOME%\bin\setcp.bat" %%x
2N/A
2N/Acd %DIR_HOME%
2N/A
2N/A%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.BackUpDB --configClass org.opends.server.config.ConfigFileHandler --configFile %DIR_HOME%\config\config.ldif %*
2N/A
2N/A
2N/A:end
2N/A
2N/A