论坛风格切换切换到宽版
  • 744阅读
  • 2回复

[问题求助][问题已解决,现在有新问题在3楼,请帮忙看看啊]请教关于rsync服务 [复制链接]

上一主题 下一主题
离线acmilanajax.
 
发帖
2104
C币
-593911
威望
388
贡献值
3
银元
-1
铜钱
4730
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
我想利用rsync客户端,定时到rsync 服务上抓取文件。而且只取到我规定.的一些文件。因为文件比较分散,查看rsync的帮助,发现好象--files-from.=FILE 可以实现我的要求。但是在具体使用的.时候,却总是出错。我现在用的是2..6.9的版本。(        游戏          )

服务器IP是192.168.100..112,服务器客户端都用2.6.9的版本r.sync。.


r.sync document中关于该.选项的一端说明。.

In addition, .the --files-from file can be read from the remote host instead of the local host .if you s.pecify a "host:" in front of the .file (the host must match one end of the transfer). As a short-cut, you can specify ju.st a prefix of ":". to mean "use the remote end of the transfer". For example.:              汽车


rsync -.a --files-from=:/path/file-list s.rc:/ /tmp/copy.

This would copy all the files specified in. the /path/file-list file that was located .on the remote "src" hos.t.            女人


我现在存在的问题是:不是很明白应.该如何指定远程机.器上的filelist文件。还有,就是例子中的src:指的是什么?           鲜花

我在client端这样写的,但是.不对             电子
我现在client端与.s.erver端相同的位置创建filelist文件电影
内容为
host:192..168.100.112--- 印刷
然后运行
/home/.rsync/bin./rsync -a --files-from=:/.home/sp/filelist web1:/home/sp/hard /tmp/--------------彩票






下面这个连接就是我现在在看的rs.ync的.man 帮助的html版本。.
http://rsync.samba.org/ftp/rsync/rsync.html电影

[ 本帖最后由 NICKY.BO.Y 于 2007-6-12 11:4.7 编辑 ].

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线b88954966.
发帖
1978
C币
-235378
威望
361
贡献值
1
银元
-4
铜钱
4576
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
[root@ha2 tmp]# /home/rsync/bin/rsync -a --port=5788 --files-from=:/home/sp/filelist 192.168.100.112::sts/ /tmp/
welcome file sync server!!!

rsync: failed to open files-from file /home/assp/filelist: No such file or directory
rsync error: requested action not supported (code 4) at clientserver.c(685) [sender=2.6.9]
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(604) [receiver=2.6.9]

我现在是这样写的,可是client端居然报/home/assp/filelist: No such file or directory的错误。可是我文件有啊,而且我改成了777的权限啊

离线rexon3105.
发帖
1946
C币
-235515
威望
362
贡献值
1
银元
-1
铜钱
4374
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
问题已经解决了。client本地不需要做改变指定--files-from=:filelist就可以了。

不过我碰到新的问题啊。
/home/rsync/bin/rsync -a --port=5788 --progress --rsh=ssh --files-from=:filelist 192.168.100.112::sts/ /tmp/
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(453) [receiver=2.6.9]


用--files-from时,加了ssh就会出错。这个应该怎么解决啊?
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个