Hello,
Can somebody please point me in the right direction for migrating a Subversion 1.4 repository to Subversion 1.6 on a different server ? I'd appreciate any help I can get, I'm not having much luck googling this.
Hello,
Can somebody please point me in the right direction for migrating a Subversion 1.4 repository to Subversion 1.6 on a different server ? I'd appreciate any help I can get, I'm not having much luck googling this.
Make certain that you are treating that dump file as a binary file. It looks like a text file and you can get away with editing it in a number of ways... but it isn't just text. So if a newline conversion has occurred during the transfer or something you'd wind up with a mess.
We did it in a slight different way: we created a new repository and used svnsync to create a mirror of the repository. This one should be used as read-only until the time you want to switch. Then add hooks to the old repository to forbid commits (ideally display and error message telling your users to relocate to the new repository). svnsync a last time and activate the new repository. This was much faster than dumping and more efficient as we could catch up and sync the latest changes to the old repos.
First of all, I'm not 100% sure that you can move a dump file freely between Linux and Windows. You may have to convert line endings.
Next, you should try to first move the repository in 1.4 format, and then upgrade it in place. One way to do that, on the target machine:
svnadmin create --pre-1.5-compatible /path/to/repo
svnadmin load /path/to/repo <dumpfile
svnadmin upgrade /path/to/repo
See the SVN book for details of svnadmin.