mirror_websites_with_wget
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mirror_websites_with_wget [2013/09/12 21:32] – created juckins | mirror_websites_with_wget [2025/03/20 19:59] (current) – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Using wget to Mirror a Website ==== | ||
+ | |||
http:// | http:// | ||
+ | -- | ||
+ | |||
+ | The quickest and easiest way to mirror a remote Web site is to use wget. Wget is similar to cURL (and I'll be the first to admit that I prefer cURL over wget), but wget has some really slick and useful features that aren't found in cURL, such as a means to download an entire Web site for local viewing: | ||
+ | |||
+ | $ wget -rkp -l6 -np -nH -N http:// | ||
+ | |||
+ | This command does a number of things. The -rkp option tells wget to download recursively, | ||
+ | |||
+ | The -l6 option tells wget to recurse to a maximum of six nested levels, while -np tells it not to recurse to the parent directory. The -nH option tells wget not to create host directories; | ||
+ | Finally, -N tells wget to use time-stamping, |
mirror_websites_with_wget.1379035936.txt.gz · Last modified: 2013/09/12 21:32 by juckins