How to backup and restore an SVN repository with full commit history
Sometimes you need to move an SVN repository from one server to another but maintain the full commit history (i.e. comments and changes). Here is a very simple way to do so.
1. Dump (and compress) the source SVN in one line:
svnadmin dump [path to source SVNrepository] | gzip -9 > [path to destination gzipped dump file]
svnadmin dump /var/svn/projectx | gzip -9 > /home/awesomeadmin/svn_backup/projectx.dump.gz
2. Transfer gzipped dump to new server
3. Decompress dump
4. Restore dump to new SVN repository
svnadmin load [path to new SVN repository] < [path to dump file]
svnadmin load /var/svn/projecty < /home/awesomeadmin/svn_backup/projectx.dump
That’s it. Pretty simple, no?
Previously I was running KDE 4.3.3 on top of Fedora 11 (for the first experiment) and KDE 4.6.5 on top of Gentoo (for the second experiment).