The previous article describes the backup and restore of SVN data in a Windows environment, and this article describes data migration under Linux environments.
A preparatory work
1 Installation Environment
1 CentOS 7
2 available online
2 Software Requirements
1 WinSCP
2 PuTTy
All of our command operations are on top of the putty, and the following is no longer emphasized, because the SVN environment of Linux is not a visual environment, we need to use WINSCP to explore the file path to the remote server.
Two Data Warehouse Build
First, login putty, account password is the Linux server account password
1 online installation (using the display operation or using WINSCP to enter the following command)
Yum Install Subversion
2 View the installed version
Svnserve--version
3 Creating the SVN version Library directory
Mkdir-p/var/svn/orgnizationsystem_net
4 Creating a version library
Svnadmin Create/var/svn/svnrepos
You can create an appropriate data warehouse by using the specific data warehouse name Orgnizationsystem_net instead of placeholders.
After executing the svnadmin create/var/svn/orgnizationsystem_net command, we can create a data warehouse named Orgnizationsystem_net under the/var/svn/directory. As shown in the following illustration:
5 into the Conf directory (the following operations have no special statement, are for the Conf directory, the directory is the current SVN version of the Library configuration directory)
Cd conf/
6 Set Account password
Vi passwd
Add user name and password in the [users] block, format: account = password, such as evaluation=123456
7 Setting permissions
Vi Authz
Add the following code at the end:
[/]
Evaluation=rw
Indicates that the user evaluation owns read: Read (r) write: Write (w) permission
Or
[/]
*=rw
Indicates that all users of this version library have read and write permissions.
8 Modifying svnserve.conf files
Vi svnserve.conf
Remove all of the following comments:
Anon-access = Read #匿名用户可读
auth-access = Write #授权用户可写
Password-db = passwd #使用哪个文件作为账号文件
Authz-db = Authz #使用哪个文件作为权限文件
Realm =/var/svn/svnrepos #认证空间名, directory where the version library resides
9 starting the SVN version library
1 Stop service First:
Killall Svnserve
2 Start SVN service:
Svnserve-d-r/var/svn/orgnizationsystem_net
10 Test
Open the SVN client and enter the following command
Svn://192.168.22.246\orgnizationsystem_net
This command is the server address and data warehouse name.
Then enter the account number and password that we have set up, OK.
。。。 Attention:
1 All commands need to remove the annotation symbol (#) in front
2 All commands need to be removed from the front space
3 All setup operations need to be saved, save command ESC + colon (SHIFT +;) + X
4 When setting permissions, the first line of code must be written
The illustration above shows comments and spaces
The image above is the save flag.
By this, our SVN warehouse was created successfully.