Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrate from Subversion 1.4 to 1.6

Tags:

svn

migration

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.

like image 455
Alex Marshall Avatar asked Sep 16 '09 19:09

Alex Marshall


2 Answers

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.

like image 93
Avi Avatar answered Sep 28 '22 04:09

Avi


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.

like image 26
jdehaan Avatar answered Sep 28 '22 04:09

jdehaan