How to migrate 100 plus SVN repositories to a new server(windows) from windows server?

1.7k views Asked by At

i have to move some 100 plus individual svn repos to a different windows server. I don't want to dump each repo and load it on to the new server as it takes a lot of time. can anyone please suggest some other solution which will save time. Also once I move my repos to new server do i have to create a new repository for each single old repository or will the svn installed on the new server detect and track the newly moved repositories? We are using Collabnet Subversion Edge on both the old and new servers. please advice. you help is greatly appreciated. Thank you

1

There are 1 answers

2
David W. On

And what type of server are you using? Is it Apache http?

If you're moving the repositories from one Windows machine to another, it should be safe to simply move the repository directories themselves from one system to the other, and you don't have to do a dump and load. This is especially true if both servers are running the same version of Subversion.

However, if this was Unix, I would do a dump and load, but only because I can easily write a shell script to do this. I guess if you had Cygwin installed, you could write a shell script. How is your PowerShell?

As for configuring, are you using Apache HTTP? If so, you can use the SVNParentPath to simply point to the parent path where all the repositories are stored. Here's ours. Any repository located in the /opt/cm/svn_repos directory is served as http://machine/src/<reposName>:

<Location /src>
    DAV svn
    SVNParentPath /opt/cm/svn_repos
    SVNListParentPath on
    AuthType basic
    AuthName "Our Repository"
    AuthBasicProvider ldap
    AuthzLDAPAuthoritative off
    AuthLDAPURL "ldap:..."
    AuthLDAPBindDN "..."
    AuthLDAPBindPassword "..."
    Require valid-user
</Location>