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

Re: SUBVERSION repository mirroring?

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-06-10 13:33:58 CEST

Andreas Jellinghaus wrote:
> Ah, no, sorry. I meant partial access via httpd with AuthzSVN.
> It should allow me to have data for different sites in one
> repository, seperate the data for each site by using one directory
> for each, and allow each user to access only the data for his/her
> site and global data.

If I understand you correctly, Yes I think so. The sites would be required to
have two mirrors configured: one for their site and one for the globals. The
latter could be a readonly mirror (which would certainly be prudent) and the
former could be a bidirectional read/write mirror (so they could make local
changes and you would get them).

They would be required to sync each mirror segment individually, but since only
one would potentially have local change, it would only be required to check the
site mirror for possible conflicts. In other words:

        # to initialize mirrors
        $ svk mirror //remote/global http://yourserver/repos/global
        $ svk sync //remote/global
        $ svk mirror //remote/site1 http://yourserver/repos/site1
        $ svk sync //remote/site1

        # establish their local working copies
        $ svk cp //remote/site1 //local
        $ svk co //remote/global /path/to/global
        $ svk co //local /path/to/local

        # normal sync process
        $ svk sync //remote/global
        $ svk sync //remote/site1
        $ svk smerge -C //remote/site1 //local
        $ svk smerge //remote/site1 //local

        # transfer local updates to remote
        $ svk smerge -C //local //remote/site1
        $ svk smerge //local //remote/site1
        $ svk sync //remote/site1

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 10 13:35:15 2004

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.