so when trying to set up an SVN server I somehow managed to make our repositories
folder a single repository, and every repository created after that was treated as part of that repository. Now I have a multiple projects living in one repository that need to be separate. Is there a way to separate these folders out into separate repositories?
EDIT: it seems like this could be done with svnadmin dump
and svnadmin load
but I can't figure out how to dump a folder within a repository, instead of dumping the entire repository.
You do a svnadmin dump
of the entire repository, but when you do your load, you use svndumpfilter to filter out the parts of the repository you don't want to load.
You'd use it like this:
$ svnadmin dump svn_repos > svn.dump #Entire repository
$ svndumpfilter include "foo" < svn.dump > foo.dump #Filter out just "foo"
$ svnadmin load --parent-dir / svn_foo_repos < foo.dump #Load "foo" in own repos
I haven't used it in a while, so my memory might be a bit rusty, but the Subversion Red-Bean book is pretty good.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With