How to move a subversion repository to another server
The tragic death of my closet server
My closet server died last night. No big deal it was over ten years old and was running at 233MHz...besides it was my wife's old computer hehe. My friend Imran gave me one of his old work machines and I've been moving stuff over. Since I had a svn repository on the old machine the situation presented itself with a problem to move the whole repository. Luckily the good people behind svn have thought about this and provide out-of-the box commands to do this. On the old server machine do.
slashdot
svnadmin dump repositoryPath > repository.dumpfile
File transfer the repository.dumpfile file to the new server machine and over there do
cd /path/to/new-repository-parent-directory
svnadmin create repository-name
svnadmin load repository-name < repository.dumpfile
Then on your client type
svnadmin create repository-name
svnadmin load repository-name < repository.dumpfile
svn switch --relocate oldurl newurl
del.icio.us
technorati
[more]