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

Re: Hook script from 'dav mirror' branch?

From: Justin Erenkrantz <jerenkrantz_at_apache.org>
Date: 2003-02-23 18:53:27 CET

--On Sunday, February 23, 2003 2:57 PM +0100 Gerald Richter
<richter@ecos.de> wrote:

> I need to setup a read only mirror of one of our svn repositories.
> I have searched through the mailing list archive and found that
> there is a dav-mirror branch. As far as I understand there should
> be a hook script in this branch which does excatly what I need, but
> I wasn't able to find it in dav-mirror branch.
>
> Could anybody give me a hint where to find it?

There isn't a hook script for it, per se.

But, the general idea is to do the following as a post-commit hook on
the master repository:

svnadmin dump --incremental -r ${REV} > dump-file
for i in ${SLAVES}; do
  scp dump-file ${i}:tmp/
  ssh ${i} svnadmin load ${SLAVE_REPOS_PATH} < tmp/dump-file
done

-/-

That's the general idea. HTH. -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Feb 23 18:54:08 2003

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