Subversion Repositories DevTools

Rev

Rev 1291 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1291 dpurdie 1
@echo off
4226 dpurdie 2
REM Maintained in package SubversionServerSupport
3
REM
4
REM Create a backup of all the Repos while the server is in use 
5
REM
1291 dpurdie 6
set BREPO=e:\Backup_Repositories
7
set REPO=e:\Repositories
8
 
9
REM rmdir /s/q %BREPO%
10
if not exist %BREPO% goto backup
11
echo Backup Repository "%BREPO%" already exists
12
exit /B 1
13
 
14
:backup
15
mkdir %BREPO% 
16
echo Backup Hooks and Other config
17
copy %REPO%\* %BREPO%
18
for /D %%R in ( %REPO%\* ) do call :copyOne %%R
19
goto end
20
 
21
:copyOne
22
echo HotCopy %~nx1
23
if %~n1==Import_test goto end
24
 
25
REM rmdir /s/q %BREPO%\%~nx1
26
svnadmin hotcopy %1 %BREPO%\%~nx1
27
 
28
:end