免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: angeler
打印 上一主题 下一主题

请教一个rsync的问题 [复制链接]

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亚洲杯之朝鲜
日期:2015-03-13 22:47:33IT运维版块每日发帖之星
日期:2016-01-09 06:20:00IT运维版块每周发帖之星
日期:2016-03-07 16:27:44
11 [报告]
发表于 2010-07-13 12:46 |只看该作者
回复 10# angeler


    还没碰到过这种问题。

你可以试试:
  1. rsync -azv w4.ynews:"/home/logs/nd/access-2010-07-11-06*.gz /home/logs/nd/access-2010-07-11-18*.gz /home/logs/nd/access-2010-07-12-00*.gz" /filer/udc/daily/20100711/w4.ynews/fe/
复制代码
或者

逐个测试,看看问题出在哪里
  1. rsync -azv -e "ssh -p 22 -1 -o StrictHostKeyChecking=no" w4.ynews:"/home/logs/nd/access-2010-07-11-06*.gz" /filer/udc/daily/20100711/w4.ynews/fe/
复制代码

论坛徽章:
0
12 [报告]
发表于 2010-07-13 13:58 |只看该作者
回复  angeler


    还没碰到过这种问题。

你可以试试:或者

逐个测试,看看问题出在哪里
blackold 发表于 2010-07-13 12:46


本地服务器是Linux 32位,w4.ynews是Linux 64位,w5.ynews也是Linux 64位,w1.ynews是BSD的。

以下是Linux 32位与Linux 64位之前rsync命令
  1. rsync -azv -e "ssh -p 22 -1 -o StrictHostKeyChecking=no" w5.ynews:"/home/logs/nd/access-2010-07-11-06*.gz /home/logs/nd/access-2010-07-11-18*.gz /home/logs/nd/access-2010-07-12-00*.gz" /filer/udc/daily/20100711/w5.ynews/fe/
  2. receiving file list ... done
  3. ./
  4. .ssh/
  5. .ssh/authorized_keys

  6. sent 36 bytes  received 699 bytes  1470.00 bytes/sec
  7. total size is 1003  speedup is 1.36
复制代码
以下是Linux 32位与BSD之间rsync命令
  1. rsync -azv -e "ssh -p 22 -1 -o StrictHostKeyChecking=no" w1.ynews:"/home/logs/nd/access-2010-07-11-06*.gz /home/logs/nd/access-2010-07-11-18*.gz /home/logs/nd/access-2010-07-12-00*.gz" /filer/udc/daily/20100711/w1.ynews/fe/
  2. receiving file list ... rsync: link_stat "/home/logs/nd/access-2010-07-11-06*.gz" failed: No such file or directory (2)
  3. rsync: link_stat "/home/logs/nd/access-2010-07-11-18*.gz" failed: No such file or directory (2)
  4. rsync: link_stat "/home/logs/nd/access-2010-07-12-00*.gz" failed: No such file or directory (2)
  5. done
  6. client: nothing to do: perhaps you need to specify some filenames or the --recursive option?
  7. rsync error: some files could not be transferred (code 23) at main.c(723)
复制代码

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亚洲杯之朝鲜
日期:2015-03-13 22:47:33IT运维版块每日发帖之星
日期:2016-01-09 06:20:00IT运维版块每周发帖之星
日期:2016-03-07 16:27:44
13 [报告]
发表于 2010-07-13 15:03 |只看该作者
回复 12# angeler


    不带-e的命令测试过吗?

论坛徽章:
0
14 [报告]
发表于 2010-07-13 15:21 |只看该作者
回复  angeler


    不带-e的命令测试过吗?
blackold 发表于 2010-07-13 15:03
  1. rsync -azv  w4.ynews:"/home/logs/nd/access-2010-07-11-06*.gz /home/logs/nd/access-2010-07-11-18*.gz /home/logs/nd/access-2010-07-12-00*.gz" /filer/udc/daily/20100711/w5.ynews/fe/
  2. receiving file list ... done
  3. ./
  4. .ssh/
  5. .ssh/authorized_keys

  6. sent 36 bytes  received 699 bytes  1470.00 bytes/sec
  7. total size is 1003  speedup is 1.36
复制代码
我ssh version默认是2,如果不带-e只能将ssh version默认改为1了,呵呵,不过不带-e仍然是这样子的。

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亚洲杯之朝鲜
日期:2015-03-13 22:47:33IT运维版块每日发帖之星
日期:2016-01-09 06:20:00IT运维版块每周发帖之星
日期:2016-03-07 16:27:44
15 [报告]
发表于 2010-07-13 15:33 |只看该作者
回复 14# angeler


    看起来与ssh的配置有关,没有测试环境,无法测试。

论坛徽章:
0
16 [报告]
发表于 2010-07-15 13:19 |只看该作者
回复 15# blackold

恩,我再自己测试一下吧,非常感谢您的回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP