Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to you move a part of an SVN repository into a new repository?

To move the contents of a complete SVN repository into a new repository, one has to dump the old repository first:

svnadmin dump /path/to/repository > repository-name.dmp

and then load it into the new one using svnadmin load.

But I'm not sure how to just move a part. Do I still have to dump the whole thing? Do I grep for the part that I want?

To just dump myproject, I tried this, but it didn't work:

svnadmin dump /path/to/repository/myproject
share|improve this question
Or does this belong on – dehmann Apr 8 '10 at 19:37
.. I think you'd probably find the answer on serverfault, but I think these days there are enough "power users" using SVN on their local machines for it to be worth leaving here. It got votes! – Zac Thompson Apr 28 '10 at 4:54

You need to use svndumpfilter for stuff like this. In particular svndumpfilter include. So for your case:

svndumpfilter include myproject < repository-name.dmp > myproject.dmp
svnadmin load /path/to/myproject-repo < myproject.dmp

share|improve this answer

If your repository is hosted at an URL you can use svnrdump to dump a sub-folder of the repository:

svnrdump dump[.../]project

where repos is the root of the repository and project is the sub-folder that you want to dump.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.