Added script for svn repo mirroring.
Updated deliv config files.
This commit is contained in:
16
repos/init_svn_private_mirror.bat
Normal file
16
repos/init_svn_private_mirror.bat
Normal file
@@ -0,0 +1,16 @@
|
||||
setlocal
|
||||
%~dp0config.bat
|
||||
|
||||
set REPO_NAME=%1
|
||||
set REPO_URL=%2
|
||||
set REPO_USERNAME=%3
|
||||
set REPO_USERPASS=%4
|
||||
|
||||
set REPO_DIR=mirrors\svn\%1
|
||||
set REPO_LOCAL=file:///%REPO_ROOT%/svn/%REPO_NAME%
|
||||
|
||||
rd /q/s %REPO_DIR%
|
||||
svnadmin create %REPO_DIR%
|
||||
copy _hooks\*.cmd %REPO_DIR%\hooks\.
|
||||
svnsync init --sync-username svnsync --source-username %REPO_USERNAME% --source-password %REPO_USERPASS% "%REPO_LOCAL%" %REPO_URL%
|
||||
echo svnsync sync --sync-username svnsync --source-username %REPO_USERNAME% --source-password %REPO_USERPASS% "%REPO_LOCAL%" > mirrors\svn\sync_%REPO_NAME%.bat
|
||||
Reference in New Issue
Block a user