Eventually you reach a point where your Subversion server just isn’t cutting it anymore.Â Either the drive is too slow, or it was just some old beat up Pentium MMX you had hiding in the closet.Â The time has come to migrate all your repositories to a new home on a better server.Â But how do you go about doing this without losing all your history?Â Thankfully there is any easy way to do it.
On your old server:
svnadmin dump repositoryPath > repository.dumpfile
Now on your new server run the following commands:
svnadmin create repository-name
svnadmin load repository-name < repository.dumpfile
Last of all, on your client stations run the following command if they are using a command line interface:
svn switch --relocate oldurl newurl
Or if they are using TortoiseSVN just right click, go to TortoiseSVN, then click Relocated. Now punch in the new path to the repository and hit Ok.
Congrats! You’re done
Only registered users can comment.
I suggest Git instead of subversion – It’s much simpler, faster, and more powerful – and you can use it with a subversion server.