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

Re: Complete mirroring via svnsync

From: Mark <mark_at_mitsein.net>
Date: 2006-09-29 00:48:04 CEST

I'm currently supporting svn+ssh and http[s] svn urls. Since I have
thousands of users and hundreds of repositories, I am using ldap for
auth with svn+ssh (ssh) and http[s] (apache). That presented a
problem when I needed to be able to run an svnsync for any repository
and the user would not necessarily have credentials cached for that
(it could be run as my apache user or as the user themselves if they
ran svn+ssh).
So, I decided the easiet thing to do is to enable svnserve and create
one user, svnsync, in a master password file that all the
respos/conf/svnserve.conf files refer to. Also, I added svnsync to
the authz for every repos with [/] = rw.
That done, I added something like this in post-commit for each repos:
svnsync --non-interactive --username svnsync --password <svnsync pass>
--no-auth-cache sync svn://svn.server.mine${REPOS} &

and in post-revprop-change:
svnsync --non-interactive --username svnsync --password <svnsync
pass> --no-auth-cache copy-revprops svn://svn.server.mine${REPOS}

Note that I am running my svn server on linux. Seeing as you seem to
not be tied to ldap for your svn apache setup, you could just add
svnsync to your AuthUserFile and AuthzSVNAccessFile and be happy.

On 9/28/06, Jim Gifford <maillist@jg555.com> wrote:
> Mark wrote:
> > Yeah, you don't want to mix rsync with svnsync. Lemme see if I
> > understand what you are wanting to do, though. You confused me by
> > saying "allow us to mirror, and force the commits to the master repo."
> > You are committing to the master repo and not a mirror, right? Why
> > do you say force?
> >
> What happens with the way I have the proxy setup, no matter what server
> you commit to, it gets forced back to the main server.
> > Also, what do you mean by "telling the sites to do a sync?" Do you
> > have more than one mirror or master?
> >
> We have one master repo
> > Personally, I set up svnserve and created an svnsync user that has rw
> > in every repos. Using triggers in post-commit and post-revprop-change
> > the master repository generates syncs on each commit.
> >
> How did you accomplish this, I'm interested. We are using svn with Apache.

"Blessed is he who finds happiness in his own foolishness, for he will
always be happy."
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 29 00:48:39 2006

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