我想利用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 编辑 ].