- 帖子
- 8
- 积分
- 24
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2010-7-30
|
4楼
发表于 2010-8-8 18:04
| 只看该作者
SLEEP 10
SET JOBNAME=WUXI0004
SET SERVERIP=\\192.168.1.10
SET FROMDIR=D:\SDWorkbenchServer\projects
SET TODIR=\SDWorkbenchServer\projects
SET BACKUPDIR=\trac
SET COPYUSER=copyuser
SET COPYPWD=copyuser
D:
cd \san
lib\JOBMSG START
rem echo ******************************************************* >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem echo SD儚乕僋儀儞僠僒乕價僗掆巭 丂丂 %DATE% %TIME% >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem echo ******************************************************* >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem net stop "SDWorkbenchServer" >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem IF NOT ERRORLEVEL 1 GOTO E_STOP
rem LIB\JOBMSG ERROR STOP1 %ERRORLEVEL%
rem echo SD儚乕僋儀儞僠僒乕價僗掆巭偵幐攕偟傑偟偨丅 >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem GOTO JOB_END
rem :E_STOP
echo ******************************************************* >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
echo SD儚乕僋儀儞僠偺僶僢僋傾僢僾 丂 丂%DATE% %TIME% >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
echo ******************************************************* >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
echo Trac僨乕僞僐僺乕(%FROMDIR%%BACKUPDIR%佀%SERVERIP%%TODIR%%BACKUPDIR%) >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
net use %SERVERIP%%TODIR% %COPYPWD% /user:%COPYUSER%
robocopy %FROMDIR%%BACKUPDIR% %SERVERIP%%TODIR%%BACKUPDIR% /e /mir /copyall /v /zb /copy:dt /dcopy:t
IF NOT ERRORLEVEL 1 GOTO E_COPY1
LIB\JOBMSG ERROR COPY1 %ERRORLEVEL%
echo Trac僨乕僞僐僺乕偵幐攕偟傑偟偨丅 >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
GOTO E_COPY1
:E_COPY1
echo Trac/SVN擣徹僼傽僀儖僐僺乕(%FROMDIR%佀%SERVERIP%%TODIR%) >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
copy %FROMDIR%\trac.htdigest %SERVERIP%%TODIR% /Y
copy %FROMDIR%\svnauthz %SERVERIP%%TODIR% /Y
IF NOT ERRORLEVEL 1 GOTO E_COPY2
LIB\JOBMSG ERROR COPY2 %ERRORLEVEL%
echo Trac/SVN擣徹僼傽僀儖僐僺乕偵幐攕偟傑偟偨丅 >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
GOTO E_COPY2
:E_COPY2
rem echo ******************************************************* >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem echo SD儚乕僋儀儞僠僒乕價僗嵞婲摦丂丂 %DATE% %TIME% >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem echo ******************************************************* >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem net start "SDWorkbenchServer" >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem IF NOT ERRORLEVEL 1 GOTO E_START
rem LIB\JOBMSG ERROR START1 %ERRORLEVEL%
rem echo SD儚乕僋儀儞僠僒乕價僗嵞婲摦偵幐攕偟傑偟偨丅 >> log\WUXI0004_%Date:~0,4%%Date:~5,2%%Date:~8,2%.txt
rem GOTO JOB_END
rem :E_START
LIB\JOBMSG END
:JOB_END |
|