一、关闭所有连接,以防在备份升级中,有写入和修改操作
二、安装 subversion-1.7.9
wget http://mirror.bit.edu.cn/apache/subversion/subversion-1.7.9.tar.gz tar zxvf subversion-1.7.9.tar.gz cd subversion-1.7.9 ./configure --prefix=/usr/local/subversion-1.7.9 make make install
三、备份项目
/usr/local/subversion-1.6.17/bin/svnadmin dump /var/svn/project1 > /root/projext1.svn /usr/local/subversion-1.6.17/bin/svnadmin dump /var/svn/project2 > /root/projext2.svn /usr/local/subversion-1.6.17/bin/svnadmin dump /var/svn/project3 > /root/projext3.svn
PS:1.6.17 是我当前使用版本
四、导入项目
/usr/local/subversion-1.7.9/bin/svnadmin create /var/svn/project1/ /usr/local/subversion-1.7.9/bin/svnadmin create /var/svn/project2/ /usr/local/subversion-1.7.9/bin/svnadmin create /var/svn/project3/ /usr/local/subversion-1.7.9/bin/svnadmin load /var/svn/project1/ < /root/projext1.svn /usr/local/subversion-1.7.9/bin/svnadmin load /var/svn/project2/ < /root/projext2.svn /usr/local/subversion-1.7.9/bin/svnadmin load /var/svn/project3/ < /root/projext3.svn
五、启动SVN服务
/usr/local/subversion-1.7.9/bin/svnserve -d --config-file /var/svn/svnserve.conf -r /var/svn --log-file /var/svn/one.log
转载请注明:爱开源 » Svn服务端 1.6 升级 1.7