SVN-3:主从同步

svnsync同步
主:192.168.56.20
主svn须要经过apache发布才能同步文件到备svn
在备份svn新建sadoc项目,配置与主svn相同权限
修改项目文件夹下hooks下面的pre_revprop-change内容只有exit0.
chmod +x pre-revprop-change apache

初始化app

svnsync init file:///application/svndata/test http://192.168.56.20/svn/test/ --username lmkmike --password 123456ide

同步
svnsync sync --non-interactive file:///application/svndata/test --username lmkmike --password 123456svn

主SVN修改后备svn会自动同步
vi post-commit
/usr/bin/svnsync sync --non-interactive svn://192.168.56.13/sadoc --username lmkmike --password 123456post

属性被锁
svn propdel svn:sync-lock --revprop -r0 svn://192.168.56.13/sadocget

相关文章
相关标签/搜索