6
votes

I've been using Tortoise SVN (and VisualSVN) with a local repository on my desktop PC for a couple of months. We've just set up a Linux SVN server, and I want to move my repository to this server, preserving all my history. Once it's moved, I'll stop using the local repository.

The Tortoise docs suggest using the "Relocate..." command, but this complains about mismatched UUIDs. I found some suggestions on how to edit the UUID file to make it match the server, but Tortoise ignored the new value, even after a reboot.

Also, I currently don't have command line access to the Linux server, but can probably get it if I have to.

What's the best way to do this?

4

4 Answers

9
votes

You need to svnadmin dump your local repository, get that dump file onto the Linux machine, and svnadmin load it there.

Relocate is used on your working copies after the above has been done.

Here's the documentation.

2
votes

Your best bet is to read the section on Migrating a repository in the Red Bean book

2
votes

If you use a FSFS-repository backend (this is standard since svn 1.3) you can just file-copy the whole repository directory (eg. via SCP) to the LINUX server. Then the relocate should be no problem as it is in fact the same repository.

The FSFS repo format is platform compatible (please check that linux svn version is same or higher than you visualSVN version)

I did this very often and it really work (of course it is much better to stop committing before copying the repo)

1
votes

I have just tried the following (as a response to intense despair):

The repositories were created with TortoiseSVN and no SVN running on the other side (only a shared resource). So, I installed the new SVN server and used its binaries to run

C:\csvn> svnrdump dump file://server_ip/shared_resource/project > projectDump.svndump

Where server_ip is the ip of the server where the repository was created. And it worked! Just needed permissions over the shared folder (in my case I have a user in Active Directory to login in the old repository server and the new one).

Just guessed that this info could help anyone that, like me, is suffering heavily migrating a crappy setup.