[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: RE: Backing up a live repos

From: Garrick Olson <Garrick.Olson_at_Aceva.com>
Date: 2004-05-11 01:17:06 CEST

Is it strictly necessary to do "svnadmin hotcopy" before "svnadmin
dump"? Or is this a performance optimization?

I looked at the svn book, but it doesn't seem to indicate whether it is
safe to do "svnadmin dump" on a live repository. Maybe I just missed
it.

-----Original Message-----
From: Mark [mailto:mark@msdhub.com]
Sent: Monday, May 10, 2004 11:39 AM
To: 'Brian Mathis'; 'Eric Carlson'
Cc: users@subversion.tigris.org
Subject: RE: Backing up a live repos

 
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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 11 01:17:49 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.