svnsync 同步

Step 1. svnadmin create

Run once

@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


@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

@echo off
echo ---------------------------------------------------------------------------
echo %date:~0,10% %time%
echo Start...
echo Syncing myrepo...
svnsync sync file:///E:/Repositories/myrepo

echo End.
echo ---------------------------------------------------------------------------



你可能感兴趣的:(Windows,SVN)