|
|
|
Dump and load foreign subversion repositories using svnadmin and svndumpfilterWhat for ?This is mostly a reminder for mysef about the way of dumping and loading subversion repositories. Let's say I have two subversion repositories. repoA and repoB. I got a component called P at the root of repoA as below : repoA /What I'd like todo is to copy P from repoA to repoB preserving all the history logs for P. Dumping the repositoryLet's say I started the developement of P with revision 28000 and my last checkin related to P is at revision 38000. The revision numbers are important because it will decrease the needed time to dump the actual svn repository. Less revisions to dump means less time needed :) We will use svnadmin to do that. Go on the server hosting the subversion repository and dump it this way : $ svnadmin dump --quiet --revision 28000:38000 /home/svn/repoA > repoA.dumpThis operation can last a while depending on the size of your repository. svnadmin dump options : $ svnadmin dump --help Filtering P component from repoA's dumpWhat we are interested in here is only component P. We need to filter out for P component. We will use svndumpfilter to do that. $ cat repoA.dump | svndumpfilter include P > P.dumpsvndumpfilter options : $ svndumpfilter --help Loading back P dump to repoBNow go on the server hosting repoB. Before that, transfer your P.dump to this server. We will use svnadmin to load it back $ svnadmin load --quiet /home/svn/repoB < P.dumpsvnadmin load options : $ svnadmin load --helpHere we are. You just need to remove P from repoA $ svn remove http://svn.foo.com/repoA/POf course, what would be really cool, instead of the dump/load operations, would be something like that being possible in between foreign repositories $ svn move https://svn.foo.com/repoA/P https://svn.foo.com/repoB/ Thanks Florent
for the pointers. Important announcement: Join the Nuxeo team and contribute to the Nuxeo project! We have open positions in France and the UK for open source Java EE developers and sales engineers, both junior and senior. Trackback PingsTrackback URL for this entry:
http://blogs.nuxeo.com/sections/blogs/julien_anguenot/2006_04_21_dump-load-svn-repositories-using-svnadmin-svndumpfilter/tbping
|
Nuxeo Bloggers: Log in! Search Nuxeo Blogs
About this blog
Julien Anguenot ja [at] nuxeo [dot] com Nuxeo Bloggers
Photos and Pictures
|
|
Nuxeo -
Indesko -
Nuxeo 5 Project
All content is copyrighted by their author. CPSSkins is Copyright © 2003-2006 by Jean-Marc Orliaguet. | CPS is Copyright © 2002-2006 by Nuxeo SAS. |