博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
177.2. repository 管理
阅读量:6717 次
发布时间:2019-06-25

本文共 3181 字,大约阅读时间需要 10 分钟。

177.2.1. create repository

$ su - svnroot$ svnadmin create /home/svnroot/neo

177.2.2. user admin

#!/bin/bash################################ Author: Neo
> $SVNROOT/conf/passwd}deluser(){ local user=$1 if [ -z $user ]; then usage else ed -s $SVNROOT/conf/passwd <

用法

./svnuser list./svnuser add user passwd./svnuser del user

177.2.3. authz

$ svnadmin create /home/svnroot/project

$ svnserve --daemon --root /home/svnroot/project

[groups]member = neoblog = neo,netkillerwiki = bg7nyt,chen,jingfeng[/]* =[/member]@member = rw* = r[/app/blog]@blog = rw* =[/app/wiki]@blog = rw* =# [repository:/baz/fuz]# @harry_and_sally = rw# * = r

$ svnadmin create /home/svnroot/project1

$ svnadmin create /home/svnroot/project2

$ svnserve --daemon --root /home/svnroot

[groups]member = neoblog = neo,netkillerwiki = bg7nyt,chen,jingfeng[project1:/]* =[project2:/]* = r[project1:/member]@member = rw* = r[project2:/app/blog]@blog = rw* =[project2:/app/wiki]@blog = rw* = r

例 177.1. authz

[aliases]# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average### This file is an example authorization file for svnserve.### Its format is identical to that of mod_authz_svn authorization### files.### As shown below each section defines authorizations for the path and### (optional) repository specified by the section name.### The authorizations follow. An authorization line can refer to:###  - a single user,###  - a group of users defined in a special [groups] section,###  - an alias defined in a special [aliases] section,###  - all authenticated users, using the '$authenticated' token,###  - only anonymous users, using the '$anonymous' token,###  - anyone, using the '*' wildcard.###### A match can be inverted by prefixing the rule with '~'. Rules can### grant read ('r') access, read-write ('rw') access, or no access### ('').[aliases]# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average[groups]manager = neodeveloper = jam,john,zentester = evadesigner = allandeployer = ken[/]@manager = rw@developer = r@designer = r@deployer = r@tester = r* =############################## Trunk# ##########################[/www.mydomain.com/trunk]@manager = rw@designer = rw@developer = rw@deployer = r[/images.mydomain.com/trunk]@designer = rw[/myid.mydomain.com/trunk]@designer = r[/info.mydomain.com/trunk]@developer = r@designer = r##############################\Branches#############################[/admin.mydomain.com/branches]@developer = rw@designer = rw[/myid.mydomain.com/branches]@developer = rw@designer = rw[/info.mydomain.com/branches]@developer = rw@designer = rw[/www.mydomain.com/branches]@developer = rw@designer = rw[/images.mydomain.com/branches]@developer = rw@designer = rw[/log.mydomain.com/branches]@developer = rw[/report.mydomain.com/branches]@developer = rw################################ TAGS# #############################[/myid.mydomain.com/tags]@deployer = rw[/admin.mydomain.com/tags]@deployer = rw[/info.mydomain.com/tags]@deployer = rw

177.2.4. dump

svnadmin dump /svnroot/project | gzip > svn.gz

原文出处:Netkiller 系列 手札

本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的文章
Postgres On Docker-窥探容器服务
查看>>
性能优化工具知识梳理(2) Systrace
查看>>
JS中的洋葱模型
查看>>
js call、apply、bind的实现
查看>>
《程序员的职业素养之代码整洁之道》成为专业人士必读
查看>>
使用IntelliJ Idea新建SpringBoot项目
查看>>
聊聊flink的Table API及SQL Programs
查看>>
Android M 封装过的运行时权限处理
查看>>
架构的演进,阿里资深Java工程师表述架构的腐化之谜
查看>>
DDGScreenShot —iOS 图片处理--多图片拼接 (swift)
查看>>
flutter 带未读消息的底部导航
查看>>
Protobuf 语言指南(proto3)
查看>>
你的目标,不要只是说说而已
查看>>
adb安装以及简单的操作
查看>>
前端项目部署
查看>>
JavaScript 工作原理之十五-类和继承及 Babel 和 TypeScript 代码转换探秘
查看>>
贝聊系统架构服务化之路
查看>>
ES6 的几个小技巧
查看>>
从Vue.js源码看nextTick机制
查看>>
前端如何处理emoji表情
查看>>