Linux is building Svnserver

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.