2010-11-04 02:46:38 +07:00
|
|
|
@Title Copy Database after backup
|
|
|
|
@Rem $Id: myDBcopyTemplate.bat,v 1.4 2003/12/04 04:38:27 jjanke Exp $
|
|
|
|
|
|
|
|
@Echo Modify the script myDBcopy to copy the database backup
|
|
|
|
|
|
|
|
@Rem This example creates one unique file per day in a month
|
|
|
|
@Rem You may want to copy it to another disk first
|
|
|
|
@Rem Note that the %DATE% parameter is local specific.
|
|
|
|
@Rem In Germany, it is %DATE:~3,2%
|
2016-07-20 22:36:38 +07:00
|
|
|
@Rem For USA, the following alternative formatting works: %date:~10,4%%date:~7,2%%date:~4,2%_%time:~0,2%%time:~3,2%%time:~6,2%
|
2010-11-04 02:46:38 +07:00
|
|
|
@Rem When called, the following files were created:
|
2012-06-06 21:13:34 +07:00
|
|
|
@Rem %IDEMPIERE_HOME%\data\ExpDat.dmp
|
|
|
|
@Rem %IDEMPIERE_HOME%\data\ExpDat.log
|
|
|
|
@Rem %IDEMPIERE_HOME%\data\ExpDat.jar (containing the above)
|
2010-11-04 02:46:38 +07:00
|
|
|
|
|
|
|
@set DATETIME=%date:~6,4%%date:~3,2%%date:~0,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%
|
|
|
|
@Echo Creating ExpDat_%DATETIME%.jar
|
|
|
|
ren ExpDat.jar "ExpDat%DATETIME%.jar"
|
|
|
|
@dir ExpDat%DATETIME%.jar
|
|
|
|
|
2012-06-06 21:13:34 +07:00
|
|
|
@Echo copy %IDEMPIERE_HOME%\data\ExpDat%DATETIME%.jar to backup media
|