I am going to be performing a server migration for our SVN repos hosted on Enterprise Linux 6.2 using SVN 1.6.9 over svnserve (svn://) and mod_dav_svn (http://). I will be using the svnbackup.pl (svnadmin dump) and svnrestore.pl scripts to make backups from one server, create the repos on the new server and restore to the new repos. I would like to install SVN 1.7.9 (latest stable) on the new server and wanted to know if anyone has experience with this, or if anyone has encountered any issues with restoring backups from a 1.6.9 repo to a 1.7.9 repo. Thanks in advance! Centos 6.4 on destination server.
I did svn 1.5 to svn 1.6, so, this is what I did:
I left the production running on svn 1.5 as is. My repos are in /opt/repos/svn/
I installed svn 1.6 + https and relative modules on another host. The location of the repo is exactly the same, i.e. /opt/repos/svn.
I svnhotcopy or svndump all repos to its own files and scp-ed over to /opt/repos/svn on the machine running svn 1.6. If no one is using svn, you can even rsync it. svnhotcopy is a great tool, it will create a copy of a repo while it is in use, to avoid any data corruption.
Then I pointed my svn client to the new host, checked out repo I have access to. Updated some files, checked it in, I could view my files on https as we used cvsweb. This was my test that it works.
For my maintenance, I had everyone exit out of svn, after hours, I removed all repos on the new host, rsync-ed repos from old host to the new host. Change DNS to point svn CNAME to the new host. The new host became my production host and the old host, I upgraded to 1.6 and is now my standby host.
Do not upgrade it without any backup. Backup all repos and upgrade it on another host. SVN is an important tool, you must have a standby host just in case your production goes down.