What do I need to consider when moving SVN Repo to new domain/server

dani_cv's picture
dani_cv asked on May 24, 2011 - 4:23pm | Replies (4).

I need to move my current svn repo to a new domain/server.

When I looked through the documentation, 'svnadmin dump' and 'svnadmin load' will do the job for moving a repo to a new server. My question here is what else I need to do/consider when moving to a new "domain".

The current repo is enabled with ldap and needs to work the same fashion after the migration. Any help would much appreciated. Thanks,

4 Answers

jrep's picture
jrep replied on May 24, 2011 - 4:51pm.

Is your question specifically about "moving to a new domain"? Or are you asking for basic repository set-up guidance?

There's nothing about the data in the repository (the part handled by dump/load) that cares about hostnames or LDAP or any of that, so your existing dump/load plan is all that needs to be said about the data.

The other considerations are basically the same for the new repository as for the old. Notionally, you just need to copy the relevant configuration files, and make the necessary changes. You didn't provide much detail about that in your post, so I can't provide much detail in the reply.

dani_cv's picture
dani_cv replied on May 24, 2011 - 5:07pm.

Thank you for the quick response.
Just to clarify, my question is on moving existing repo to a new domain.

If dump/load and moving necessary config files works, that would be great. But I still have few questions. What about the history that has the old domain/login information on it? Is there a mapping file exists in SVN where we can update the new domain user id for the old (for preserving history etc), like when we do the domain migration in ClearCase?


jrep's picture
jrep replied on May 24, 2011 - 5:33pm.

No, there's no mapping file. That info is in the repository as plain text. The usual procedure would be to leave it alone. With ClearCase, you sometimes need to do such conversions because the recorded user identities have enduring meaning, as ownership records and access rights. Subversion doesn't do that, it merely records the author info.

If you really do want to change those, you would do it with svndumpfilter, which is applied to the dump file, making your process dump / filter / load. But this is a pretty non-specific tool. You'll need to collect the appropriate mappings yourself, of course, and if there are many names to map, you may find yourself running dumpfilter several times, handling conversions in batches.

dani_cv's picture
dani_cv replied on May 24, 2011 - 5:35pm.

That clarifies the question.

Thank you indeed!


CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.