Use svn to manage multiple projects, convention <svn_reps>=/soft/svnprojects. Here I start to tell you step by step
1 Create a new project:
svnadmin create project1
svnadmin create project2
2 Copy files
Copy the two files <svn_reps>/project1/conf/passwd and <svn_reps>/project1/conf/authz to the <svn_reps> directory and execute the following command: cp /soft/svnprojects/project1/conf/authz /soft/svnprojects/ project1/conf/passwd /soft/svnprojects/
3 Delete files
Delete these two files in the new project, and execute fame and fortune as follows
rm -f /soft/svnprojects/project1/conf/authz
rm -f /soft/svnprojects/project1/conf/passwd
rm -f /soft/svnprojects/project2/conf /authz
rm -f /soft/svnprojects/project2/conf/passwd
4: Modify the configuration file in project1
Modify the <svn_reps>/project1/conf/svnserve.conf file. The places that need to be modified are:
anon-access=none
auth-access=write
password-db=../../passwd
authz-db=../../authz
realm=project1
5: Modify the configuration file in project2
Modify the <svn_reps>/project2/conf/svnserve.conf file. The places that need to be modified are:
anon-access=none
auth-access=write
password-db=../../passwd
authz-db=../../authz
realm=project2
6: Modify the configuration files passwd and authz
Modify the <svn_reps>/passwd file and add the username and password. As shown in the figure
Modify: <svn_reps>/authz file, the specific modified result is as follows
7: Close svn:
killall svnserve
8: start svn
svnserve -d -r /soft/svnprojects
9: Client export code
svn://<ip>/project1
10: Version Migration
The specific reference is as follows: http://www.cnblogs.com/springside-example/archive/2011/11/30/2530176.html
Mainly use the command
svnadmin dump
svnadmin load
11 TortoiseSVN Installation and Usage Guide
see attached.