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

Re: svnadmin dump of hot repository

From: Eric Wilhelm <ewilhelm_at_sbcglobal.net>
Date: 2005-03-04 16:11:05 CET

# The following was supposedly scribed by
# Greg Loscombe
# on Friday 04 March 2005 08:08 am:

>I wrote a little backup script in Python using svnadmin --dump  -
>basically a way to do an incremental backup on several repos. nightly
>(or whenever)

The trouble with running from a cron job is that you have to ask the
repository what its revision number is, check that it is greater than
the last backup, etc. With a hook-script, you only backup when there
has been a commit and the repository tells you the revision number.

>I'm not really a programmer (just the SVN admin) - so it might look a
>little nasty, but it seems to do the trick =)
>Any improvements or feedback would be great.

You should look at the inc_backup and scheduler programs that I wrote.
This allows you to configure the backup schedule on a per-repository
basis based on how many revisions have been committed.


If you want help setting them up, let me know.


"Time flies like an arrow, but fruit flies like a banana." 
                                             -- Groucho Marx
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 4 16:08:36 2005

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.