Found this great article on how to hack your way to do a SVN dump from a remote repo. I had never use the svnsync command but this allows you to make the remote repo a local one and you can easily use it to create your dump file. Very useful when you have lost admin access to the original server and you need to migrate to a new SVN server.
Quick command list:
- svnadmin create temprepo
- echo ‘#!/bin/sh’ > temprepo/hooks/pre-revprop-change
- chmod +x temprepo/hooks/pre-revprop-change
- svnsync init file://temprepo https://server/svn/origrepo
- svnsync sync temprepo
- svnadmin dump temprepo > dumpfile
Copy the dump file over to the new SVN server and on it:
- svnadmin load reponame < dumpfile
A quick word of warning because the UUID will change with this process so doing “svn sw” on existing working copy might prove to be challenging.