svnsync笔记

svnsync配置

1.初始化

svnsync init svn://192.168.1.12/test https://127.0.0.1/svn/test --sync-username sync --sync-password sync

2.同步

svnsync sync svn://192.168.1.12/test

3.增加主库hook脚本 post-commit.bat

@echo off
svnsync synchronize svn://192.168.5.236/test --source-username tangqiang --source-password tangq --sync-username sync --sync-password sync --non-interactive

4.在主库提交文件测试从库是否自动同步,报错提示:

synsync:E170013:Unable to connect to a respository at URL 'https://127.0.0.1/svn/test'

svnsync: E230001: Server SSL certificate verification failed: certificate issued fro a different hostname, issuer is not trusted

5.修改hook,增加证书信任参数:

--source-trust-server-cert-failures unknown-ca,cn-mismatch,expired,not-yet-valid,other
@echo off
svnsync synchronize svn://192.168.1.12/test --source-username tangqiang --source-password tangq --sync-username sync --sync-password sync --non-interactive --source-trust-server-cert-failures unknown-ca,cn-mismatch,expired,not-yet-valid,other

 

相关文章

首先介绍下什么是git和svnGIT(分布式版本控制系统)Git(读音...
注意点:系统环境:centos7,python,django,svn,jenkins首先安装...
  我使用过的版本控制工具有两种:早期的时候使用的是SVN,...
用好Git和SVN,轻松驾驭版本管理本文从Git与SVN的对比入手,...
01.jenkins安装jenkins网站:https://jenkins.io/安装:资料...
软件环境:centos7jdk1.8svn1.9maven3.5tomcat8jenkins2.80 ...