标签 ‘ svn

多svn 同步 svnsync

1、svnsync init
初始化,建立目标库和源库之间的同步关系
svnsync init 目标库URL 源库URL

2、svnsync sync
真正的同步
svnsync sync 目标库URL 源库URL

在目标库中的hooks中创建pre-revprop-change

#!/bin/sh
exit 0

chmod +x pre-revprop-change

linux svn 1.7 安装

先安装 apr 和 apr-util  (http://apr.apache.org/download.cgi)

yum install autoconf automake libtool gcc expat expat-devel -y
sh autogen.sh
./configure –prefix=/home/admin/install/svn –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr
make
make install

将svn bin目录添加到环境变量中

创建一个svn目录
svnadmin create /home/admin/install/svn/data/

配置svn
vi /home/admin/install/svn/data/conf/svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz

vi /home/admin/install/svn/data/conf/authz
[groups]
admin=test

[/]
@admin = rw

vi /home/admin/install/svn/data/conf/passwd
[users]
test = 123456

启动svn
svnserve -d -r /home/admin/install/svn/data

return top