Archive for September 2008
How to move a subversion repository to another server
I’m posting this here mostly for my own reference and for some friends that I know frequent my blog.
[linux]
At the old server command line, enter the following.
svnadmin dump repositoryPath > repository.dumpfile
Compress if you like and transport to the other machine. (ie. bzip2, then copy with: scp).
At the new server command line, enter the following.
cd /path/to/new-repository-parent-directory
…decompress if you need to (ie. bunzip2, unzip, tar xvf…)
svnadmin create repository-name
svnadmin load repository-name > repository.dumpfile
Then on your client machine (your local development instance) enter the following.
svn switch --relocate oldurl newurl
That’s it. For more, RTM.