Moving a Subversion Repository

I foolishly just moved a Subversion repository by importing the contents of a current checkout into a new repository. Wrong. A friend pointed out these instructions that make it easy and preserve the revision history.

Here’s the trick:

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

and

svnadmin load repository-name < repository-name.dmp

[tags]svn, subversion, move, repository[/tags]

One thought on “Moving a Subversion Repository

  1. This is exactly what I am looking for. I’m trying to move a repository to another directory on my website. Renaming or moving would have been ugly or maybe even a disaster. Thank you.

Comments are closed.