RSS RSS feed | Atom Atom feed
Popular Articles: Tom Riddle's Magical Diary | AJAX Lego Robot | AJAX CAPTCHA | SQL Multisets

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.

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
svn switch --relocate oldurl newurl
slashdot digg del.icio.us technorati [more]



Re: How to move a subversion repository to another server

That was very helpful. Thanks!

Re: How to move a subversion repository to another server

Wow, that was amazingly simple and problem free. Cheers!

Re: How to move a subversion repository to another server

Thanks alot. A straight forward example that worked great. Thanks for the information

Re: How to move a subversion repository to another server

Thanks a lot. It was very useful to us, just changing our old repository server machine to a new one. Best regards.

Re: How to move a subversion repository to another server

Simple and straightforward, thanks

Re: How to move a subversion repository to another server

dude.. this is awesome!

Re: How to move a subversion repository to another server

Cheers mate, excatly what I needed all presented in nice easy steps!

Re: How to move a subversion repository to another server

Exactly what I needed to know, and exactly how I'd want it presented.
Thanks!

Re: How to move a subversion repository to another server

Wonderfully to the point article, cheers!

Re: How to move a subversion repository to another server

Do you know if this migrates the user accounts for the SVN? or is that a server setting?

Re: How to move a subversion repository to another server

Very nice. Worked as described!! Thx a lot for your documentation effort!

Re: How to move a subversion repository to another server

Hi, my svn repository is in live.but Drive size 200GB is going to full.so i am added 500GB Hard disk in same system.How to move my svn repository one drive to another drive (ex:E drive to G drive).please help me,Thanks in advance,Vel

Re: How to move a subversion repository to another server

You should be able to update your server settings to point it to use the new path. You can also, as an easy solution, if you're under unix/linux you can use a symbolic link.

Re: How to move a subversion repository to another server

Its great if your repo is quite small, our is 25GB and when i started the dump it took 9 hours to complete and the size of the dump file was 150GB. Does anyone have a better way of doing this?

Add a comment Send a TrackBack