Reputation: 7726
I'm downloading a complete website using wget. I would like to know that how can I modify this terminal command so that it excludes / skips / doesn't downlaod any .zip file.
wget -m -k -K -E -p --convert-links -e robots=off http://www.example.com/
Upvotes: 0
Views: 1387
Reputation: 115
wget -m -k -K -E -p --convert-links -e robots=off -R zip http://www.example.com/
Took this from GNU's manpage of Wget:
‘-R rejlist --reject rejlist’
Specify comma-separated lists of file name suffixes or patterns to accept or reject (see Types of Files). Note that if any of the wildcard characters, ‘*’, ‘?’, ‘[’ or ‘]’, appear in an element of acclist or rejlist, it will be treated as a pattern, rather than a suffix.
Hope this helps.
Upvotes: 1
Reputation: 10354
You can use --reject
parameter
wget --reject *.zip ...
GNU Wget Manual (2.11 Recursive Accept/Reject Options)
Upvotes: 2