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?

Add a comment Send a TrackBack