Subversion Repositories DevTools

Rev

Rev 4226 | Blame | Compare with Previous | Last modification | View Log | RSS feed

@echo off
REM Maintained in package SubversionServerSupport
REM
REM Create a backup of all the Repos while the server is in use 
REM
set BREPO=d:\Backup_Repositories
set REPO=d:\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