免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 16158 | 回复: 5

[其他] svnsync同步,只同步了版本号,没有数据 [复制链接]

论坛徽章:
0
发表于 2013-08-19 15:18 |显示全部楼层
按照网上的教程配置
pre-revprop-change 内容
#!/bin/sh
USER="$3"
if [ "$USER" = "××××" ] ;then exit 0;fi
echo "Only the syncuser user may change revision properties" >&2
exit 1

start-commit 内容
#!/bin/sh
USER="$2"
if [ "$USER" = "××××" ] ; then exit 0;fi
echo "Only the syncuser user may commit new revisions" >&2
exit 1

执行初始化
[root@svnback opt]#svnsync init svn://10.10.10.2/svn     svn://10.10.10.1/svn    --username=×××× --password=××××××
Copied properties for revision 0.
执行同步
[root@svnback opt]# svnsync sync svn://10.60.1.52/svn  --username=××× --password=××××××
Committed revision 1.
Copied properties for revision 1.
Committed revision 2.
Copied properties for revision 2.
Committed revision 3.
Copied properties for revision 3.
Committed revision 4.
Copied properties for revision 4.
Committed revision 5.
Copied properties for revision 5.
Committed revision 6.
Copied properties for revision 6.
Committed revision 7.
Copied properties for revision 7.
Committed revision 8.
Copied properties for revision 8.
Committed revision 9.
Copied properties for revision 9.
Committed revision 10.
Copied properties for revision 10.
Committed revision 11.
Copied properties for revision 11.

版本号都同步过来了  就是没有Transmitting file date 这个过程,也没有数据
请问这样 该怎么解决  也配置了源机器的post-commit
svnsync sync  --non-interactive svn://10.10.10.2/svn/ --username=×××× --password=xxxxxx
在源机器上提交后 目标机器的版本号也会同步增长 但是没有依然没有数据

论坛徽章:
0
发表于 2013-09-13 14:30 |显示全部楼层
亲  是你的权限有问题
用的是svnservere启动的吧
把anon-access = read 改成  anon-access = none

论坛徽章:
0
发表于 2013-09-16 23:39 |显示全部楼层
看不懂啊 慢慢来学

论坛徽章:
0
发表于 2014-06-05 15:46 |显示全部楼层
问题早解决了 就今天上了 论坛 还是回复一下把

把被同步端 使用apache来发布就可以了

论坛徽章:
0
发表于 2015-04-07 14:44 |显示全部楼层
回复 4# 该用户名已

目标端难道必须要用apache来发布吗????????????

   

论坛徽章:
41
操作系统版块每日发帖之星
日期:2016-08-21 06:20:00每日论坛发贴之星
日期:2016-05-05 06:20:00操作系统版块每日发帖之星
日期:2016-05-05 06:20:00IT运维版块每日发帖之星
日期:2016-05-05 06:20:0015-16赛季CBA联赛之山西
日期:2016-04-27 08:49:00操作系统版块每日发帖之星
日期:2016-04-25 06:20:00操作系统版块每日发帖之星
日期:2016-04-17 06:23:2815-16赛季CBA联赛之吉林
日期:2016-03-25 15:46:3415-16赛季CBA联赛之四川
日期:2016-03-25 14:26:19操作系统版块每日发帖之星
日期:2016-05-27 06:20:00操作系统版块每日发帖之星
日期:2016-05-28 06:20:00IT运维版块每日发帖之星
日期:2016-08-18 06:20:00
发表于 2015-04-27 14:28 |显示全部楼层
你好像是在其他机器上做的同步?

我这边是在mirror服务器上执行的,没有你说的问题

先创建工程,改hook中的exit 0。然后初始化,最后svnsync sync file:///svn/xxxx

这样没有问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP