Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Moved SVN Repository To New Server

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Today I moved a rather large subversion repos from our old server to a new server. The URL is now different and I'm wondering if there is a simple way to point existing checked out stuff to the new url location. Will the switch command work in this case? I asking before I try it because I don't want to jack anything up.

Thanks.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried the following and I got no errors but when I do an svn update, it is still looking at the old server.

svn switch --relocate svn+ssh://gdboling@oldserver/var/svn/repos/project/trunk svn+ssh://gdboling@newserver/home/svn/repos/project/trunk
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed the 'gdboling@' from the URL's and when I run the command it asks for the password to the new server. But then I get this error.

svn: The repository at 'svn+ssh://newserver/home/svn/repos/project/trunk' has uuid '67c3b32d-0b90-4e6f-a96e-dced573cc65b', but the WC has 'de81da0c-c016-4476-abf5-1d7ab34bc7f0'
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out. I had to use the svnadmin setuuid to give the new server the old server's uuid. Now the switch worked just fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic