我想要从网络服务器上下载所有内容,但它似乎进展顺利但是我正在下载的服务器存在问题,因为它正在运行磁盘空间并因此停止运行。
我正在寻找一种让wget下载所有网站内容的方法,如果它找到了一个已经处理过的文件,检查它是否小于Web服务器上的文件,如果它继续下载的话或者更糟糕的是重新下载它。如果文件确实存在且大小相同,则转到下一个文件
我目前正在使用
wget -r --no-parent -N http://www.website.com
答案 0 :(得分:2)
点击man wget
查看--continue
(或-c
)选项。手册页甚至显示了与递归下载一起使用的此选项。
从手册页:
-c
--continue
Continue getting a partially-downloaded file. This is useful
when you want to finish up a download started by a previous
instance of Wget, or by another program. For instance:
wget -c ftp://sunsite.doc.ic.ac.uk/ls-lR.Z
If there is a file named ls-lR.Z in the current directory,
Wget will assume that it is the first portion of the remote
file, and will ask the server to continue the retrieval from
an offset equal to the length of the local file.
并显示-r
和-c
一起使用:
You may put several options that do not require arguments together, like:
wget -drc <URL>
This is completely equivalent to:
wget -d -r -c <URL>
-Rich Alloway(RogueWave)