Search code examples
svngitunixrepositorysvnadmin

Is there a way to move a svn repository if you don't have access to the svn server?


I have been seeing information on how to move a repository if you have access to the server the repository is hosted on but what if you only have the login information for the repository?

Can you do a full checkout of a repository and all of its revisions and then move it to another repository?

The reason for this is because I have taken over a project but don't have access to the svn server although I have login credentials.


Solution

  • I have used rsvndump before to dump a complete SVN repository, I didn't have server access to. It takes a while but works quite well. The resulting SVN dump can then be loaded to a different repository using svnadmin (inlcuding a local repository which is then synced to a remote repository using svnsync, e.g. Google Code).

    If you plan to migrate to git later on (I'm guessing this based on your git tag), then you don't need to do it that complicated though. You can just svn clone the repository with git then, and push the git repository you got to some other server. Then all the information is already there (git svn clone does fetch the whole SVN repository too).