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,
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.
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?
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.
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.