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

Re: Backing up SVN

From: Jay Jones <jay_at_blueacorn.co.uk>
Date: 2006-08-01 20:18:33 CEST

Res Pons wrote:
> Thank you for your help. I didn't even know this utility existed. If
> I understand you correctly, I could run a cronjob to run the hotcopy
> cmnd at a certain hour to a certain folder or another drive and then
> back up that folder or drive?
Yes.
> Our repository is on a linux red hat enterprise 3.5 with Apache.
> Could I just run the hotcopy cmnd against the repo, copy it to a
> folder and back up that folder? How long does the hotcopy usually
> take for a repo of about 2-5GB, do you happen to know? Thanks again
>
> < snip >
Yes - but don't know why you'd do the extra "copy" step. how long? -
try and we shall see!

Here's the online reference page for SVN admin hotcopy command.
http://svnbook.red-bean.com/en/1.2/svn.ref.svnadmin.c.hotcopy.html
This utility should be available on your linux svn installation also.
The command would look something more like this on linux:
svnadmin hotcopy $repo1 /tmp/mirror1

For configuring cron:
http://www.aota.net/Script_Installation_Tips/cronhelp.php3

Also, according to the website below: "The standard Subversion
installation also provides a Python script within the tools/backup
directory that can be scripted to run automatically (via cron for
example), rather than running 'svnadmin hotcopy' manually."
http://linuxformat.co.uk/wiki/index.php/Subversion_-_Setting_up

Enjoy :)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 1 20:19:59 2006

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.