linux – 使用WGET从FTP服务器传输文件的问题

linux – 使用WGET从FTP服务器传输文件的问题,第1张

概述我使用wget从FTP服务器获取文件.我这样做: wget ftp://username:[email protected]/public_html/images/audiothumbs/* . 下载大约1600个文件后,我收到此错误: --2010-09-07 01:36:51-- http://./Resolving .... failed: Name or service no 我使用wget从FTP服务器获取文件.我这样做:
wget ftp://username:[email protected]/public_HTML/images/audiothumbs/* .

下载大约1600个文件后,我收到此错误:

--2010-09-07 01:36:51--  http://./Resolving .... Failed: name or service not kNown.wget: unable to resolve host address `.'FINISHED --2010-09-07 01:36:52--Downloaded: 1998 files,20M in 3m 31s (95.7 KB/s)

我是否与其他服务器断开连接?

其次,如果使用no-clobber选项,如下:

wget -r -nc ftp://username:[email protected]/public_HTML/images/audiothumbs/* .

为什么文件仍然被覆盖?

谢谢大家的帮助

解决方法 你有额外的.在命令行的末尾. wget与cp不同,不占用目标目录.因此,在从FTP服务器下载所有文件后,它会尝试从服务器下载文件(使用http).

对于-nc,记录的是做一些不同于你期望的事情:

      When running Wget without -N,-nc,or -r,downloading the same file      in the same directory will result in the original copy of file      being preserved and the second copy being named file.1.  If that      file is downloaded yet again,the third copy will be named file.2,and so on.  When -nc is specifIEd,this behavior is suppressed,and      Wget will refuse to download newer copIEs of file.  Therefore,‘‘"no-clobber"’’ is actually a misnomer in this mode---it’s not      clobbering that’s prevented (as the numeric suffixes were already      preventing clobbering),but rather the multiple version saving      that’s prevented.
总结

以上是内存溢出为你收集整理的linux – 使用WGET从FTP服务器传输文件的问题全部内容,希望文章能够帮你解决linux – 使用WGET从FTP服务器传输文件的问题所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1035020.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存