[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to migrate just part of a repo to another server

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 6 Sep 2011 20:41:13 +0200

On Tue, Sep 06, 2011 at 02:30:08PM -0400, Todd D. Taft wrote:
> I'm trying to move just a few directory trees from a subversion repo
> to another server.
>
> On the old server, I run svndump /path/to/old/repo > /tmp/svn-dumpfile
> I've copied the svn-dumpfile to the new server.
> Now, when I try to run cat svn-dumpfile | svndumpfilter include
> /htdocs/CCDB | svnadmin load /path/to/new/repo I get an error from
> svndumpfilter:
> svndumpfilter: Invalid copy source path '/CCDB'
> and I don't see anything in my new repo.
> What am I doing wrong?

Somewhere in history the path you include was copied from /CCDB.
You need to include copy history, i.e. you need add /CCDB to your
include list.

For complex cases, there is a helper script which analyses copy history
and lists all paths which need to be included.
See https://svn.apache.org/repos/asf/subversion/trunk/tools/server-side/svnpredumpfilter.py
Received on 2011-09-06 20:41:52 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.