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