English 中文(简体)
How can I move my local Tortoise SVN repository to our new Linux SVN server?
原标题:

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?

最佳回答

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.

问题回答

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

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)

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.





相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签