初始化镜像SVN
示例:镜像svn(远程svn) 源svn(本地svn)
svnsync init `镜像SVN` `源svn` --username syncuser --password syncpass
svnsync init http://192.168.0.62/svn/test/ http://192.168.0.61/svn/test/ --username chenwb --password chenwb_pwd
测试同步
svnsync synchronize http://192.168.0.62/svn/test/ --username chenwb --password chenwb_pwd
启用实时备份
在svn项目hook目录下,新建post-commit文件,内容如下:
svnsync synchronize --non-interactive http://192.168.0.62/svn/test/ --username chenwb --password chenwb_pwd
参考链接:
1、使用svnsync实时备份SVN版本库
https://www.cnblogs.com/zz0412/p/svnsync.html