The scenario: You have a folder called code-repo where you keep all your svn repositories (let’s assume it is located in the root c:/ on a Windoze system). You have a repository named xproject. For some reason you need to rename the repository. Let’s say it needs to by yproject. There are 3 steps to rename the repository and retain all the history you have in the repo.
- Create an svn dump file of the xproject repo:
svnadmin dump C:\code-repo\xproject > c:\xproject.dmp
- Create the new yproject svn repo:
svnadmin create C:\code-repo\yproject
- Load the dump of the old repository into the new one:
svnadmin load C:\code-repo\yproject < C:\xproject.dmp
Sweet.
Thanks for the instructions. It helped.
Very helpful. Thank you!
Why not just rename the repository directory on the SVN server? I don’t think the actual folder name is in any way tied into database information…that would skip all the wasted time to dump and reload the database…there should be no reason to generate a new database.
Not sure that would work as SVN can be either FSFS or BDB backend. With BDB that would be disastrous.
I’ve just remnamed running VisualSVN on Windows 2003r2. I would take the repo offline first. Not sure out is using BDB but I’m sure not.