@Echo	Compiere Full Database Export 	$Revision: 1.1 $

@Rem $Id: DBExportFull.bat,v 1.1 2006/01/11 06:55:49 jjanke Exp $

@Echo Saving database %1@%COMPIERE_DB_NAME% to %COMPIERE_HOME%\data\ExpDatFull.dmp

@if (%COMPIERE_HOME%) == () goto environment
@if (%COMPIERE_DB_NAME%) == () goto environment
@Rem Must have parameter: systemAccount
@if (%1) == () goto usage


@sqlplus %1/%2@%COMPIERE_DB_NAME% @%COMPIERE_HOME%\utils\%COMPIERE_DB_PATH%\Daily.sql


@exp %1/%2@%COMPIERE_DB_NAME% FILE=%COMPIERE_HOME%\data\ExpDatFull.dmp Log=%COMPIERE_HOME%\data\ExpDatFull.log CONSISTENT=Y STATISTICS=NONE FULL=Y

@cd %COMPIERE_HOME%\data
@jar cvfM data\ExpDatFull.jar ExpDatFull.dmp  ExpDatFull.log

@goto end

:environment
@Echo Please make sure that the enviroment variables are set correctly:
@Echo		COMPIERE_HOME	e.g. D:\Compiere2
@Echo		COMPIERE_DB_NAME	e.g. dev1.compiere.org

:usage
@echo Usage:	%0 <systemAccount>
@echo Examples:	%0 system/manager

:end
