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

svn repos locking tool

From: Karl Chen <quarl_at_NOSPAM.quarl.org>
Date: 2004-12-09 09:04:10 CET

Hi,

Is there any way to run arbitrary things while keeping a
repository in a consistent state?

For example, to implement a tar+gz or rsync backup instead of
'svnadmin hotcopy'.

Maybe a "run with locking" command like:

  svnadmin syncexec /repos/myrepos -- tar xzf /backup/myrepos.tar.gz /repos/myrepos

Or:
  lock_handle=`svnadmin lock /repos/myrepos` || exit 1
  do_stuff
  svnadmin unlock $lock_handle

The possibility of using rsync to incrementally backup an FSFS
repository is nice but it seems right now we'd have to take the
server offline to do it (and this can be painful unless it's only
accessed through svn://)

Also, /svn/trunk/notes/fsfs talks about plans for 'svnadmin
recover' being able to deal with naive copies - will this be in
subversion 1.2?

-- 
Karl 2004-12-08 23:49
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 9 09:05:41 2004

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

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