Added script for svn repo mirroring.

Updated deliv config files.
This commit is contained in:
2018-09-24 10:53:59 +02:00
parent 6ef4f1e8a8
commit ffa5f06e3d
21 changed files with 377 additions and 4 deletions

View 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