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

Re: Running svnsync from post-commit hook

From: Marc Girod <mgirod_at_iona.com>
Date: 2007-08-27 18:52:28 CEST

Hello Joshua,

Thanks for your suggestion...

"Joshua Oreman" <oremanj@gmail.com> writes:

> Have you tried this?
> $ svnsync synchronize svn+ssh://vobadm@stengers/x1/svnroot/foo

> You'll need to give each committer non-passworded (publickey) access
> from the main repository machine to vobadm@stengers, which may or
> may not suit the trust level you have in your committers.

There's the trust level issue--no, indeed, I cannot give such an
access to everybody, and it doesn't only depend on me-- but I thought
even more of the manageability issue: there are many committers, over
different continents, with whom synchronization is not easy.

Now, your setup suggestion may alleviate that...

> If you do trust them with that, the easiest way is probably to make
> a wholly new keypair, and store it in the repository somewhere:

> $ ssh-keygen -t rsa -f /your/repository/conf/id_rsa.mirror
> Add /your/repository/conf/id_rsa.mirror.pub to
> stengers:/home/vobadm/.ssh/authorized_keys, and add the following to
> each committer's ~/.subversion/config:
>
> [tunnels]
> sync = ssh -i /your/repository/conf/id_rsa.mirror
>
> Then use 'svn+sync://vobadm@stengers' instead of 'svn+ssh://vobadm@stengers'.

Very interesting.

> But a better solution might be to switch to using svnserve or Apache.

Sorry?
We are supporting http as well as ssh, with an apache server.

How can this help us?
Idem, I didn't consider svnserve... Not mentioned in the page about
replication either.

Still puzzled...
Marc

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 27 18:51:58 2007

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.