Archive for January, 2007

Move an SVN repository

Sunday, January 14th, 2007

Great tips found here:
http://dotnot.org/blog/archives/2005/01/13/move-a-subversion-repository-from-one-machine-to-another/

Quote:

Even if the machines are on different operating systems, this is dead easy. On the source machine, simply ‘dump’ the repository:
svnadmin dump /path/to/repo > reponame.dump
tar zcf reponame.tgz reponame.dump
scp reponame.tgz hostname:/path/to/new/repo

Then login to the new machine, and set up the new repo:
cd /path/to/new
svnadmin create reponame
tar zxf reponame.tgz
svnadmin load reponame < reponame.dump

That’s all there is to it. Then you can of course delete the dump files, the .tgz files, and even the source repo if you are brave.