Machine room adjustment, you need to migrate an SVN server.
The steps are as follows:
Source IP 1.1.1.1 Subversion version 1.8.0 destination IP 2.2.2.2
The 1.8.x version is also installed on the target machine to avoid unforeseen problems.
Find a bit of source installation are also more trouble, this time with RPM package installation:
Vim/etc/yum.repos.d/svn.repo
[Wandiscosvn]name=wandisco SVN repobaseurl=http://opensource.wandisco.com/centos/7/svn-1.8/rpms/$basearch/ Enabled=1gpgcheck=0
Yum Install Subversion
I am here 7 If it is CENTOS6 then it is 6.
The environment is ready and you can continue the migration. Let's have the most convenient hotcopy. It is best to stop the service
Because the project is more than a script execution:
Then package the SCP onto the destination server.
Continue script execution: similar to the above, the order of the directories is changed.
#!/bin/bash svndir= "/DATA/BKSVN" dsndir= "/DATA/SVN" for svn in ' ls ${svndir} ' do mkdir ${dsndir}/${svn} Svnadmin hotcopy ${SVNDIR}/${SVN} ${dsndir}/${svn}done
Last boot:
svnserve-d--listen-port 5566-r/DATA/SVN
The test is normal. Over
This article from "Good memory than bad writing" blog, please be sure to keep this source http://cobweb.blog.51cto.com/390607/1866185
CentOS SVN installation and migration