Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ChrisDolan (2855)

  (email not shown publicly)

Journal of ChrisDolan (2855)

Wednesday September 03, 2008
01:12 AM

SVN copying

[ #37332 ]

I've had to learn this twice over the last 2 years, so I'm going to document it here for eternity. :-)

I have a Subversion repository and I want to split off a piece of it (one subdir) into a new repository on another server.

ssh my-old-server
  svnadmin dump repositories/myproject | svndumpfilter include subproject \
      | bzip2 -9 > subproject_at_rev_4753.bz2
  scp subproject_at_rev_4753.bz2 my-new-server:.
ssh my-new-server
  svnadmin create repos/newproject
  bzcat subproject_at_rev_4753.bz2 | svnadmin load repos/newproject

I don't use the --drop-empty-revs option on svndumpfilter because that seems to confuse (I'm using SVN 1.4 still, not 1.5 yet).

Then in existing workspaces, I do:

  svn switch --relocate http://my-old-server/myproject/subproject \

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.