IDEMPIERE 1054
This commit is contained in:
parent
bf71a220f3
commit
881041bd54
|
@ -4,7 +4,8 @@ echo Adempiere Full Database Export $Revision: 1.3 $
|
|||
|
||||
# $Id: DBExportFull.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $
|
||||
|
||||
echo Saving database $1@$ADEMPIERE_DB_NAME to $IDEMPIERE_HOME/data/ExpDatFull.dmp
|
||||
DATE=`date +%Y%m%d_%H%M%S`
|
||||
echo Saving database $1@$ADEMPIERE_DB_NAME to $IDEMPIERE_HOME/data/ExpDatFull_$DATE.dmp
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
|
@ -27,8 +28,8 @@ sqlplus $1@$ADEMPIERE_DB_SERVER/$ADEMPIERE_DB_NAME @$IDEMPIERE_HOME/utils/$ADEMP
|
|||
chgrp dba $IDEMPIERE_HOME/data
|
||||
chmod 770 $IDEMPIERE_HOME/data
|
||||
|
||||
expdp $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDatFull.dmp LOGFILE=ExpDatFull.log EXCLUDE=STATISTICS FULL=Y
|
||||
expdp $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDatFull_$DATE.dmp LOGFILE=ExpDatFull_$DATE.log EXCLUDE=STATISTICS FULL=Y
|
||||
|
||||
cd $IDEMPIERE_HOME/data
|
||||
jar cvfM ExpDatFull.jar ExpDatFull.dmp ExpDatFull.log
|
||||
jar cvfM ExpDatFull.jar ExpDatFull_$DATE.dmp ExpDatFull_$DATE.log
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ echo Adempiere Database Export $Revision: 1.5 $
|
|||
|
||||
# $Id: DBExport.sh,v 1.5 2005/12/20 07:12:17 jjanke Exp $
|
||||
|
||||
echo Saving database $1@$ADEMPIERE_DB_NAME to $IDEMPIERE_HOME/data/ExpDat.dmp
|
||||
DATE=`date +%Y%m%d_%H%M%S`
|
||||
echo Saving database $1@$ADEMPIERE_DB_NAME to $IDEMPIERE_HOME/data/ExpDat_$DATE.dmp
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
@Echo Adempiere Full Database Export $Revision: 1.6 $
|
||||
|
||||
@Rem $Id: DBExportFull.bat,v 1.6 2005/04/27 17:45:01 jjanke Exp $
|
||||
|
||||
@Echo Saving database %1@%ADEMPIERE_DB_NAME% to %IDEMPIERE_HOME%\data\ExpDatFull.dmp
|
||||
@set Date=%date:~6,4%%date:~3,2%%date:~0,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%
|
||||
@Echo Saving database %1@%ADEMPIERE_DB_NAME% to %IDEMPIERE_HOME%\data\ExpDatFull_%Date%.dmp
|
||||
|
||||
@if (%IDEMPIERE_HOME%) == () goto environment
|
||||
@if (%ADEMPIERE_DB_NAME%) == () goto environment
|
||||
|
@ -16,10 +16,10 @@
|
|||
@echo -------------------------------------
|
||||
@sqlplus %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data
|
||||
|
||||
@expdp %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDatFull.dmp LOGFILE=ExpDatFull.log EXCLUDE=STATISTICS FULL=Y
|
||||
@expdp %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDatFull_%Date%.dmp LOGFILE=ExpDatFull_%Date%.log EXCLUDE=STATISTICS FULL=Y
|
||||
|
||||
@cd %IDEMPIERE_HOME%\data
|
||||
@jar cvfM data\ExpDatFull.jar ExpDatFull.dmp ExpDatFull.log
|
||||
@jar cvfM data\ExpDatFull.jar ExpDatFull_%Date%.dmp ExpDatFull_%Date%.log
|
||||
|
||||
@goto end
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
@Rem $Id: DBExport.bat,v 1.8 2005/04/27 17:45:01 jjanke Exp $
|
||||
@Rem
|
||||
@Echo Saving database %1@%ADEMPIERE_DB_NAME% to %IDEMPIERE_HOME%\data\ExpDat.dmp
|
||||
@set Date=%date:~6,4%%date:~3,2%%date:~0,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%
|
||||
@Echo Saving database %1@%ADEMPIERE_DB_NAME% to %IDEMPIERE_HOME%\data\ExpDat_%Date%.dmp
|
||||
|
||||
@if (%IDEMPIERE_HOME%) == () goto environment
|
||||
@if (%ADEMPIERE_DB_NAME%) == () goto environment
|
||||
|
@ -20,11 +21,10 @@
|
|||
@sqlplus %3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data
|
||||
|
||||
@Rem The Export
|
||||
@expdp %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDat.dmp LOGFILE=ExpDat.log EXCLUDE=STATISTICS SCHEMAS=%1
|
||||
@expdp %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDat_%Date%.dmp LOGFILE=ExpDat_%Date%.log EXCLUDE=STATISTICS SCHEMAS=%1
|
||||
|
||||
@cd %IDEMPIERE_HOME%\Data
|
||||
@copy ExpDat.jar ExpDatOld.jar
|
||||
@jar cvfM ExpDat.jar ExpDat.dmp ExpDat.log
|
||||
@jar cvfM ExpDat.jar ExpDat_%Date%.dmp ExpDat_%Date%.log
|
||||
|
||||
@goto end
|
||||
|
||||
|
|
Loading…
Reference in New Issue