Subversion Repositories DevTools

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

@echo off
set BREPO=e:\Backup_Repositories
set REPO=e:\Repositories

REM rmdir /s/q %BREPO%
if not exist %BREPO% goto backup
echo Backup Repository "%BREPO%" already exists
exit /B 1
        
:backup
mkdir %BREPO% 
echo Backup Hooks and Other config
copy %REPO%\* %BREPO%
for /D %%R in ( %REPO%\* ) do call :copyOne %%R
goto end

:copyOne
echo HotCopy %~nx1
if %~n1==Import_test goto end

REM rmdir /s/q %BREPO%\%~nx1
svnadmin hotcopy %1 %BREPO%\%~nx1

:end