MoveFromLinux

Moving a CVS repository from a Linux server to CVSNT

This has been asked a number of times so here is a rundown on what needs to be done in order to have all of the original revisions available also on the new platform.

  1. On Linux TAR up the entire directory tree starting from the cvs repository top. You don't need the CVSROOT directory because the admin file contents will be different anyway on CVSNT. You can save the CVSROOT/history file from the original repository if you want to use the history command and have it show also the old events.

  2. Move/copy the TAR archive over to the CVSNT server PC.

  3. In CVSNT control panel go to the Repositories tab and add a new repository. Navigate to a suitable place on the CVSNT server where you want the Linux repo to be located. Let CVSNT initialize the repository. Stop and Start the CVSNT service.

  4. Open the TAR file in Winzip and go to the tab Options/Configuration/Miscellaneous. Make sure to UNCHECK the item 'TAR file smart CR/LF conversion'! Failing this will corrupt the repository! I think that this Winzip option is not really so "smart".

  5. Extract all module folders and files into the newly created CVSNT repository while preserving the folder structure (check "Use folder names" in Winzip).

  6. Now you are basically done and your Linux repository should be accessible via the CVSNT server including all past revisions!

You will note that the history is now gone, since it is stored inside the CVSROOT folder, which was not TARed. If you like you can simply copy this file over from the Linux repository into the CVSNT CVSROOT folder but it is not essential for CVS operations so it is your call if you want this. If so you should do this before you start using the repository, because as soon as you do CVSNT will start building its own history file.

A few additional concerns (from posts by Bo Berglund, Arthur Barrett and Andreas Tscharner to the CVSNT support group between 2007-08-31 and 2007-09-03, with some editing):

last edited 2007-09-03 13:33:16 by GerhardFiedler