-   Linux - Software (
-   -   Migrating CVS to another Server? (

g!nux-one 01-21-2004 12:51 PM

Migrating CVS to another Server?
Okay so I did my due dilligence and searched on the LQs site for all other info on CVS, which actually answered my first question of how to setup a CVS server.

If you need to know how to set up a CVS server, see: thread id=134231 (great post!!!)

Now the particular question that I have is what needs to be done in order to migrate a cvs repository from one server to a new server?

Is it as simple as tar'ing the directory and ftp'ing it over?

What about permissions? Should I simply edit the passwd file to reflect the same UIDs from the old system?


ricstirato 01-21-2004 04:59 PM

Right, you can simply tar and copy the repository and then tell cvs where to find it.

Concerning permissions: if you don't have the same user ids on both systems and the new system is already in production use, you should not change user ids in /etc/passwd.

Use something like

chown <username> `find -uid <old_user_id>`

after untaring the repository on the new machine.

If you have many users, you might use a small shell script to extract uid and username from old /etc/passwd and exec the line above for all users.

All times are GMT -5. The time now is 11:07 PM.