Linux under SVN create repository and file import and export

Source: Internet
Author: User

1. Install SVN service

# Yuminstall Subversion

2. Create a new directory to store all SVN files

#mkdir-P/CBROOT/SVNSERVER/CBWEB3, create a repository for project project_1 in the folder created above# svnadmin Create/cbroot/svnserver/cbweb/trunk4. Configure permissions for the project (1) svnserve.conf is the master profile vim/cbroot/svnserver/cbweb/trunk/conf/svnserve.conf anon-acces S=none #匿名可读

Auth-access=write #验证用户可读写

PASSWORD-DB=PASSWD #指向验证用户名密码的数据文件 passwd, see configuration below

Auth-db=authz #指向验证用户的权限配置文件 Authz, see configuration below

Note: There can be no spaces in front of each line, or Option expected error will occur!

(2) passwd user name password configuration file

vim/cbroot/svnserver/cbweb/trunk/conf/passwd

[Users]

chenkuanxin=123456

libaojun=123456

libaojun=

(3) Authz User Privilege profile

[Groups]

Trunk=chenkuanxin,libaojun

[/]

@trunk =RW #定义群组 managers have read and write access

Manager3=r #定义 Manager3 have read access

*= #以上没有定义的用户都没有任何权限

5. Start the server

Svnserve-d-r/cbroot/svnserver/cbweb/

###

Start multiple SVN services

Svnserve-d–listen-port 3688-r/static/

Project Import

Terminal Input # SVN import [Source path] [target repository path]-m [Log information]

Source path can make relative path, import will recursively import the original path of all the File box folder, Target repository path requires absolute directory

For example:

SVN import file:///cbroot/svnserver/cbweb/trunk/-M "Importing files"

Project Check out

SVN Co project path check out the path of the lower midfield

Linux under SVN create repository and file import and export

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.