Moving a Subversion Repository from one Server to Another

05.09.2007 at 21:17

Today at work i had to move a SVN repository from my local virtual server to another company wide accessible one. The following worked quite well.

svnadmin dump /path/to/repository > repository.dump

Then optionally compress the resulting dump and transfer it to the other machine via preferably with scp. On the remote machine do the following:

cd /path/to/new-repository
svnadmin create repository-name
svnadmin load repository-name < repository.dump

By the way, you probably ask why we don't use a modern distributed version control system. The answer is that most development actually still happens within CVS (*outch*) and we are a near windows-only shop so TortoiseSVN comes in handy for most peoples here who are too scared to actually touch the command line.

PS: yes i should blog a bit more, but had to do other real life(tm) things recently hope this improves over time.

So long, Marc

Comments (0)

There are currently no comments available