Home > English, Tech Crunch > HOWTO Move a CVS repositoy between servers on Debian

HOWTO Move a CVS repositoy between servers on Debian

This article was first written in May 2006 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/334).

Basically, moving a CVS repository itself is not really difficult.

Let’s assume first that we don’t use the pserver mode of CVS, which is known to be weak with respect to security. We use then the SSH transport to access the CVS server, which we strongly recommend.

On Debian, the CVS repository is located by default in /var/lib/cvs. At install time, a debconf question asked you where to set it. To check where debconf at least thinks the repository is, look at /etc/cvs-cron.conf. We strongly recommend not to move it afterwards, as all the local CVS repositories (when using SSH mode) on developers’ machine retain this full path.

Make sure CVS is installed on the destination server. Package is called “cvs” and ships both the server and the client.

Now, make sure no developer is going to try to commit anything during the move. Either ask them, cut them SSH access temporarily or whatever suits you best.

Copy the repository /var/lib/cvs to the new server.

Update clients’ local repositories to point to the new server/name if you could not keep it.

Categories: English, Tech Crunch Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: