Reference links
Http://www.cnblogs.com/lidabo/p/4633152.html
Http://www.cnblogs.com/vijayfly/p/5711962.html
http://blog.csdn.net/testcs_dn/article/details/45395645
First, Backup VISUALSVN project
1. Now use Linux as the SVN server, previously on Windows Server 2008, with VISUALSVN, as shown in.
2. Now there is a project FPP in SVN that needs to export the FPP project to a Linux environment. Run cmd, enter command svnadmin dump E:\REPOSITORIES\FPP > E:\svnbak\fpp.dump Export the project to the E:\svnbak directory. The results of the operation are as follows:
3. The visible command exports the details of each version, ensuring that the previous historical information is not lost. Now we have the backup file Fpp.dump, as follows:
4. Using batch processing to achieve the bulk export of the project, write Svnbak.bat, double-click Run, will export all items at once, the results such as:
Second, upload backup files to Linux
1. Use samba,ftp, SSH and other tools to transfer the Fpp.dump file to the Linux server;
Iii. installation and configuration of SVN under Linux
1. Install SVN under Linux and install it directly with the Yum command. Yum install Subversion to complete subversion installation.
2. Build Repository Directory SVN
Mkdir/opt/svn/repos/svn
Svnserve-d-r/opt/svn/repos/svn #启动svn, set the repository directory to/svndata
Killall Svnserve #关闭svn
3. Create a project library
Svnadmin CREATE/OPT/SVN/REPOS/SVN/FPP
4. Configure User access rights
Cd/opt/svn/repos/svn/fpp/conf
VI svnserve.conf
Release comments for the following lines
Anon-access=none
Auth-access=write
password-db=passwd
Authz-db = Authz
5. VI passwd increased access to the user, in the format (username = password), the equal sign with a space on either side, otherwise invalid.
VI Authz (add permission):
[svn1:/]
User1 = RW
User2 = RW
#svn1是具体版本库的标签
Iv. Importing Backup files
1. Input command: Svnadmin LOAD/OPT/SVN/REPOS/SVN/FPP </root/fpp.dump
2. Start Svn:svnserve-d-R/OPT/SVN/REPOS/SVN
Set boot up:
Vi/etc/rc.d/rc.local
Add Command:/usr/bin/svnserve-d-R/HOME/SVN
Whereis svnserve Find SVN path
V. Checking out the Client for code
1.windows Terminal Mount TortoiseSVN, right-click SVN checkout
2. In the dialog box that opens, enter the address of the SVN repository to make sure you can synchronize the project. Address as follows, IP address plus project name,
3. SVN prompts for a successful checkout and can find the checked out item in the directory.
4. For the previous project, redirect to the new SVN server, right-->tortoisesvn->relocate, in the popup dialog box to fill in the new address, TortoiseSVN will be prompted to modify the success, then you can use the new SVN.
5. If you use the SVN command under Linux, the form is as follows:
SVN switch--relocate (old Repository root) (New Repository root)
Migrating VisualSVN from Windows Server 2008 to CentOS 6.8