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

Re: svndumpfilter help

From: Ryan Schmidt <subversion-2015_at_ryandesign.com>
Date: Fri, 5 Feb 2016 04:44:36 -0600

On Feb 3, 2016, at 10:49 AM, Eric Antonio Maquiling wrote:

> I have a new problem. Not a problem with the software I think this is
> sysadmin/user error.
>
> I've read the docs and examples on how to use svnadmin dump and svndumpfilter.
>
> I'm familiar with dumps and loads. But I have a new task appointed to me.
>
> I have a directory structure that looks like this:
>
> svn://x.x.x.x/mainproject/branch/this_new_stuff
>
> Developers want to take /this_new_stuff as a dump, and create a new repo so
> it'll look like this:
>
> svn://x.x.x.x/this_new_stuff
>
> So far so good, I'll try svndumpfilter.
>
> So I do:
> svnadmin dump mainproject > mainproject.dump
> svndumpfilter include this_new_stuff > new_stuff_only.dmp
> svnadmin create new_stuff
> cd new_stuff
> svnadmin load . < ../new_stuff_only.dmp
> ...
> ... lots of messages that it is loading
> ... it's going good, I'm getting stoked it is working
> ...
> ... whew, it's a lot, almost done
>
> done.
>
> Now I then go to my PC and do a tortoise browse svn://x.x.x.x/this_new_stuff
>
> And it is EMPTY.

If the old repository root is svn://x.x.x.x/mainproject and the stuff you want to include in the dump is in branch/this_new_stuff in the old repository, then you need to run:

svnadmin dump mainproject > mainproject.dump
svndumpfilter include branch/this_new_stuff < mainproject.dump > new_stuff_only.dmp

If branch/this_new_stuff was ever elsewhere in the repository (for example, if it was at some point in the past moved from somewhere/else/in/the/repo), then you need to include that location too.
Received on 2016-02-05 11:44:51 CET

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.