From 463c49994abfb4ab8cf5a643e26f7fede2ef3e95 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 30 Oct 2007 07:33:59 +0000 Subject: [PATCH] Preparing for nightly build --- utils/oracle/ExportReference.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 utils/oracle/ExportReference.sh diff --git a/utils/oracle/ExportReference.sh b/utils/oracle/ExportReference.sh new file mode 100755 index 0000000000..c265464e2c --- /dev/null +++ b/utils/oracle/ExportReference.sh @@ -0,0 +1,19 @@ +echo Adempiere Database Export $Revision: 1.5 $ + +# $Id: DBExport.sh,v 1.5 2005/12/20 07:12:17 jjanke Exp $ + +echo Saving reference database reference@$ADEMPIERE_DB_NAME to $ADEMPIERE_HOME/data/Adempiere.dmp + +if [ "$ADEMPIERE_HOME" = "" -o "$ADEMPIERE_DB_NAME" = "" ] + then + echo "Please make sure that the environment variables are set correctly:" + echo " ADEMPIERE_HOME e.g. /Adempiere" + echo " ADEMPIERE_DB_NAME e.g. adempiere.adempiere.org" + exit 1 +fi + +# Export +exp reference/reference@$ADEMPIERE_DB_SERVER/$ADEMPIERE_DB_NAME FILE=$ADEMPIERE_HOME/data/Adempiere.dmp Log=$ADEMPIERE_HOME/data/Adempiere.log CONSISTENT=Y OWNER=reference + +cd $ADEMPIERE_HOME/data +jar cvfM Adempiere.jar Adempiere.dmp Adempiere.log