Rename a Subversion Repository

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.

  1. Create an svn dump file of the xproject repo: svnadmin dump C:\code-repo\xproject > c:\xproject.dmp
  2. Create the new yproject svn repo: svnadmin create C:\code-repo\yproject
  3. Load the dump of the old repository into the new one: svnadmin load C:\code-repo\yproject < C:\xproject.dmp


5 thoughts on “Rename a Subversion Repository”

  1. 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.

  2. 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.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.