info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with moving repository


From: Karl E. Jorgensen
Subject: Re: Help with moving repository
Date: Mon, 20 Jan 2003 20:43:20 +0000
User-agent: Mutt/1.3.28i

On Mon, Jan 20, 2003 at 10:21:48AM +0000, Mark Cooper wrote:
> We are in the process of moving our cvs repository (pserver) for reasons of
> size and speed, and have so far asked our CVS users to ensure everything is
> checked in to the existing repository, remove the existing working copies
> then modify their CVSROOT or -d options and check out again from the
> address of the new repository (which is actually a mount point for the
> moment from the old one, until everyone sets up correctly, then it will be
> copied to its proper location at a convenient point).
>
> Some of our developers are complaining that this is going to take them too
> long (don't ask, I've already had the argument with them).
> 
> Is there a utility available anywhere to perform global changes to the cvs
> metadata in a users working copy. For instance change the entry in cvs/root
> from ":pserver:address@hidden:/cvs/cvsroot" to
> ":pserver:address@hidden:/cvs/cvsroot". I can imagine that someone somewhere
> has done this before.
> 
> If such a thing were available, it may just save me a few headaches.

If you are simply moving repository from one machine to another (and
keeping the same path), you could set up port redirection/forwarding on
the old machine, so all incoming connections on the old pserver box are
transparantly forwarded to the new pserver box.  This can be achieved by
redir(1) [it's available on Linux]. Or if you use xinetd i *believe* it
can do port forwarding too (haven't tried, YMMV).

This should allow developers to use either CVSROOT and remove the need
for a "sudden" switch.  The downside is that there bound to be somebody
who "forgets" to switch, which you will only discover once the port
forwarding is switched off.

On a related note: If you're moving the repository across machines, how
do you identify the machines?  If you have control over your DNS set-up,
you may just want to use:
        pserver.yourhost.yourdomain.tld
[substitute as appropriate]
and let "pserver" be a canonical name for the real box.  In this way,
you can move the repository to your hearts content provided that you
update DNS accordingly (and keep the same path within the box).

> Any views or opinions presented in this Email message are solely those of
> the author and do not necessarily represent those of the Microlise Group
[snip]

whatever...

just my 2 ${MONETARY_UNIT}/100...
-- 
Karl E. Jørgensen
address@hidden   http://karl.jorgensen.com   JabberID: address@hidden
==== Today's fortune:
Running Windows on a Pentium is like having a brand new Porsche but only
be able to drive backwards with the handbrake on.
(Unknown source)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]