svnsync 同步备份

一、备份目标SVN版本库

1、进入hooks目录

2、创建pre-revprop-change文件:cp pre-revprop-change.tmpl pre-revprop-change

3、修改pre-revprop-change权限:chomd +x pre-revprop-change
4
、修改文件:vi pre-revprop-change
echo “Changing revision properties other than svn:log is prohibited” >&2
exit 0
1修改为0

5、初始化同步

svnsync init 备份目标库 备份源库

二、需要备份的SVN版本库

1、首次提交同步,输入用户密码 svnsync sync

2、进入hooks,修改post-commit

3、添加每次提交后同步命令svnsync sync --non-interactive 目录版本库

 

错误:

Failed to get lock on destination repos, currently held by 'beijingsvn:0c1be104-8ee2-42ff-991a-574f65fd6f82'

解决:svn propdel svn:sync-lock --revprop -r 0 备份目标SVN版本库

你可能感兴趣的:(SVN,职场,svnsync,休闲,同步备份)