Moving a Subversion repository
May 25, 2006
From Weiqei Gao’s blog
I hosted my Subversion repository on gao-2004, and needed to move it to gao-2006. With the default backend storage system change (from Berkeley db based to file system based) for Subversion that happen between FC3 and FC4, I expected that I need to at least read a lot of documentation and perform a fair amount of experimentation.
It turn out that that is not the case, for two reasons. One, the backend storage system is an implementation detail of Subversion and is mostly hidden behind the Subversion user interface. The detail leaked through only in terms file permission problems. BTW, Pragmatic Version Control Using Subversion helped a lot in the process, even though one of its recipes no longer applies in the fsfs world.
Here’s my migration steps:
[root@gao-2004] $ svnadmin dump /var/svnroot > /mnt1/svn-repo.svndump
[root@gao-2006] # svnadmin create /var/svnroot
[root@gao-2006] # chown -R weiqi.svn /var/svnroot
[root@gao-2006] # svnadmin load /var/svnroot