I wrote a simple batch file that does roughly the same thing, except that it
dumps the repository before compressing it. It also does this for all the
repositories in the current directory (run it in you SVNParentPath). It's
not cool because it's not in python or perl, and unfortunately it'll run on
all flavors of windows >= windows 2000 without installing any ActiveState
software, and I'm sure it's full of problems, and it's inadequate,
dangerous, and will poison your children, but here it is for the interested
(replace winrar with your compression tool of choice):
@echo off
for /d %%f in (*.*) do if exist "%%f\format" (
echo Backing up %%f...
echo copying database...
svnadmin hotcopy "%%f" "Backup_%%f"
echo dumping repository...
svnadmin dump --quiet "%%f" > "%%f.dump"
rd /s /q "Backup_%%f"
echo done.
)
echo.
echo Compressing...
winrar m -ibck -m5 -rr5p Subversion_Backup.rar *.dump
echo.
echo Done.
-----Original Message-----
From: Brian Mathis [mailto:bmathis@directedge.com]
Sent: Monday, May 10, 2004 11:27 AM
To: users@subversion.tigris.org
Subject: Re: Backing up a live repos
There's an "official" script that does this.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 10 20:39:44 2004