1.服务器程序安装
svn服务器端程序下载地址:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100
2.创建repos
C:\Program Files\Subversion\bin\svnadmin create E:\repos
3.创建帐号
E:\repos\conf
修改passwd文件,添加用户
4.修改E:\repos\conf\svnserve.conf文件如下:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
[color=red]anon-access = none[/color]
[color=red]auth-access = write[/color]
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
[color=red]password-db = passwd[/color]
5.配置服务
sc create svn binpath= "C:\Program Files\Subversion\bin\svnserve.exe --service -r D:\repos" displayname= "Subversion Server" depend= Tcpip start= auto
注意:sc语法,每个参数=号后面要有空格
如果以前有配置过,需要清理svn的账户缓存:
目录如下:
C:\Documents and Settings\Administrator\Application Data\Subversion
6.同步配置
svnadmin create H:\svnrepos
copy H:\svnrepos\hocks\pre-revprop-change.tmpl H:\svnrepos\hocks\pre-revprop-change.bat
修改最后的exit 1 为exit 0
svnsync init svn://备份地址 svn://主地址
svnsync sync svn://备份地址
svn服务器端程序下载地址:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100
2.创建repos
C:\Program Files\Subversion\bin\svnadmin create E:\repos
3.创建帐号
E:\repos\conf
修改passwd文件,添加用户
4.修改E:\repos\conf\svnserve.conf文件如下:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
[color=red]anon-access = none[/color]
[color=red]auth-access = write[/color]
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
[color=red]password-db = passwd[/color]
5.配置服务
sc create svn binpath= "C:\Program Files\Subversion\bin\svnserve.exe --service -r D:\repos" displayname= "Subversion Server" depend= Tcpip start= auto
注意:sc语法,每个参数=号后面要有空格
如果以前有配置过,需要清理svn的账户缓存:
目录如下:
C:\Documents and Settings\Administrator\Application Data\Subversion
6.同步配置
svnadmin create H:\svnrepos
copy H:\svnrepos\hocks\pre-revprop-change.tmpl H:\svnrepos\hocks\pre-revprop-change.bat
修改最后的exit 1 为exit 0
svnsync init svn://备份地址 svn://主地址
svnsync sync svn://备份地址