Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downgrade svn repository db format from 1.6 to 1.5

Tags:

svn

migration

I do have an unusual situation, because I have to migrate an svn repostitory from svn-server 1.6 to svn-server 1.5. The issue is that the are no tools for downgrade available. Do anyone know some scripts or have the expirience with downgrading of svn repositories?

Cheers,

Kevin

like image 458
eglobetrotter Avatar asked Jan 24 '11 10:01

eglobetrotter


2 Answers

Apart from Wim's suggestion svnsync the other option is a full dump / reload; use the Subversion 1.6 svnadmin to dump the repostitory out e.g.

svnadmin dump --incremental --deltas > dump_file

and then use 1.5 tools to load this back in to a clean repository

svnadmin create repository_15
svnadmin load repository_15 < dump_file

You will then have to copy over hooks from the old repository into the new repository and run svnadmin pack if you use that, etc.

like image 102
Rup Avatar answered Sep 21 '22 19:09

Rup


You could use svnsync to move the content from one repository to another.

Normally svnsync is intended for keeping a read-only mirror up to date, but I believe it will work fine for a one-time migration also. It also has the advantage of working purely as an SVN client, so you don't need administrative access on the server.

like image 33
Wim Coenen Avatar answered Sep 19 '22 19:09

Wim Coenen