The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Repository Observer 0.9.14 (Default branch) iBot Software Releases - RSS News 0 05-27-2008 09:30 PM
how to move a file from one server to another server using FTP in shell script? forevercalz Shell Programming and Scripting 4 10-27-2005 01:53 AM
Move root disk to new server VirginiaSA SUN Solaris 18 05-20-2005 05:48 PM
How can i move data files from a server to unix folder shah2 Shell Programming and Scripting 1 03-01-2004 06:38 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-02-2008
+Yan +Yan is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 7
CVS: move part of repository (branch) to SVN server

Hi all,

We have CVS server running for few years with absolutely no problems.
Because of conditions not depending on me, I'm forced to move some part of our repository to another server (SVN). I need to move ONLY one branch from CVS server to SVN server. The branch must be moved with all changes made on it. I can move entire repository with absolutely no problem, but do not know how to move part of the branch with changes (cvs checkout will not work ofcourse ).

Thank you in advance for your help.
  #2 (permalink)  
Old 07-02-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
My impression is that it may be possible with a four-step migration (but to be frank I am not too sure about its viability due to my limited exposure to branches):

1. Migrate the entire CVS repository to a temporary SVN repo (you know how to do it better than I do)
2. Get a snapshot of the entire repository (using "svnadmin dump")
3. Because in SVN a branch is just a sub-tree of the repository, you can filter the sub-tree out of the repo using svndumpfilter, to produce a snapshot dump that covers that branch you want only.
4. Finally, load the filtered snapshot to the real SVN repo (of course, create a temporary repo to test it first!) using svnadmin load.

You can find more about svndumpfilter here (and also svnadmin):

Repository Maintenance

Good luck!
  #3 (permalink)  
Old 07-02-2008
+Yan +Yan is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 7
One big problem is that entire repository is about 1.5 TB, so i cannot migrate it to SVN that easy ...
Also there are people using it every day, and i cannot stop it.
  #4 (permalink)  
Old 07-02-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
If it's really that big .... I'd suggest you to ask the experts on subversion's mailing list and post a solution that works for you back here. I'll be very interested to know how to do that. You may need to use third-party tools (if exists) for that if the programs in the subversion distribution do not satisfy your requirements .....
  #5 (permalink)  
Old 07-02-2008
vgriggs vgriggs is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 1
cvs2svn

You should take a look at a project called cvs2svn. Here you will find a utility for SVN conversion from CVS (as the name indicates), and there is a section in the user manual that offers suggestions for "Deciding How Much to Convert". They offer pros/cons and advice on how to proceed for various options. Take a look: cvs2svn: cvs2svn Documentation
  #6 (permalink)  
Old 07-03-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
However, if I have not misinterpreted the documentation for cvs2svn, that does not appear to have an option for migrating a CVS branch only. My understanding is in CVS, unlike in SVN that a branch is a copy and just works like the trunk except on a separate tree, CVS branches are rooted with a revision on the parent branch and it will not be very surprising to me if indeed cvs2svn does not support migrating a branch only directly.

Correct me if I am wrong.

I guess the original poster already knows about cvs2svn because that is mostly the way to convert a CVS repo to SVN ....
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0