How to move your cvsroot folder

I recently came across a client who was running out of space on /var and needed to move some files off to a different location. There is history behind it, and this should not be your first option, but the short of it is that cvsroot was one of the folders that needed to be moved.

Here is what I did to get them going again:

  1. Made sure all users where off of CVS.
  2. Moved the cvsroot from /var/lib/cvsroot to the new location (/newfolder/var/cvsroot)
  3. Added the CVSROOT env variable to /etc/profile. This way users running CVS from the command line do not have to specify the -d parameter:
  4. CVSROOT='/newfolder/var/cvsroot'
    export CVSROOT
  5. Updated pserver configuration to reflect the new location. Now your file may not be located exactly where this was, but it should help you track it down:
  6. $ sudo vi /etc/xinetd.d/cvspserver

    Change –allow-root to reflect the new path

  7. Restart inetd
  8. $ sudo /etc/rc.d/init.d/xinetd restart



Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *