作者:劳允旭易文忠名 | 来源:互联网 | 2014-05-21 13:41
svnsync同步操作Step1.svnadmincreateRunonce[plain]@echooffecho---------------------------------------------------------------------------echo%date:~0,10%%time%echoSt
svnsync同步操作
Step 1. svnadmin create
Run once
[plain]
@echo off
echo ---------------------------------------------------------------------------
echo %date:~0,10% %time%
echo Start...
echo Creating myrep...
svnadmin create myrep
echo End.
echo ---------------------------------------------------------------------------
Step 2. svnsync init
Run once
[plain]
@echo off
echo ---------------------------------------------------------------------------
echo %date:~0,10% %time%
echo Start...
echo Initing myrepo...
svnsync init file:///E:/Repositories/myrepo http://ip/svn/myrepo --usernmae me --password *
echo End.
echo ---------------------------------------------------------------------------
Step 3. svnsync sync
Run whenver you want
[plain]
@echo off
echo ---------------------------------------------------------------------------
echo %date:~0,10% %time%
echo Start...
echo Syncing myrepo...
svnsync sync file:///E:/Repositories/myrepo
echo End.
echo ---------------------------------------------------------------------------