Recently engaged in a cloud computing server, some try to deploy something related to server. As with the developer server. The first thing to consider is the establishment of svnserver. About the build process record. Convenient later.
First, install SVN software. Some cloud servers will have Svnserver installed. Some don't.
# Yum install-y subversion //Online installation svn
# Svnserve--version //Check SVN version number
Second, create the SVN version number library
1. Create a project version number folder
# MKDIR/HOME/SVN &NBSP ; //svn folder
2, create a new version number warehouse
# svnadmin Create/home/svn/project //project is the project name
3, join the user, to join the SVN user is very easy, just need to add the conf/passwd file in the SVN project root folder in the form of username= password entries can be.
For example, I joined a lixf user.
< Span style= "Font-family:verdana,sans-serif" > [users]
# Harry = Harryssecret
# sally = Sallyssecret
lixf= 123456
&NBSP;4, configure account permissions, need to change conf/ authz file.
is the first to configure permissions groups. For example, the following is configured with 2 groups Admin and Dev:
[groups]
/span>
# harry_and_sally = harry,sally
span> # Harry_sally_and_joe = Harry,sally,&joe
/ span> admin = lixf, Other
Then configure the detailed permissions.
[/]
@admin = RW
* =& nbsp
[/doc]
& nbsp @cehua = RW
@chengxu = R
5, let the above configuration take effect, need to change SVN project root folder Next conf/svnserve.conf the contents of the file.
Change the following fields to the values below. and remove the previous # number to make the configuration effective.
# anon-access = None
# auth-access = Write
# authz-db =/svrt/wuxia/conf/authz
# password-db =/svrt/wuxia/conf/passwd
6. Start SVN service
# svnserve-d-r/home/svn
7, test server
# SVN Co svn://127.0.0.1/project
8. Back Up SVN
All backups: Svnadmin dump Svnprojpath [–revision version] > backup_file
#svnadmin dump/home/svn/project > Backup20150420.dump
#svnadmin dump/home/svn/project–revision 999 > Backup20150420.dump
Incremental backup: Svnadmin dump svnprojpath–revision lastversion:thisversion–incremental > Backup_file
#svnadmin dump/home/svn/project–revision 999:1055–incremental > Backup20150420.dump
9 , restore SVN
Svnadmin Load Svnprojpath < Backup_file
#svnadmin load/home/svn/project < Backup20150420.dump
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Linux is building Svnserver