Downloading sites using WGET
May 24th, 2008 by Peter Glaeser |
RSS feed for comments on this post |
TrackBack URI
Sometimes it is necessary to create offline versions of a page or a complete website. For example you might want to put an offline version of a site on your USB stick for a presentation. Or perhaps you need to create static backups of your site.
Today I’m going to describe how to download pages and/or complete sites onto your linux server or desktop computer. wget is the Linux command you’re looking for and here is how to use it:
Downloading a single file (without linked elements such as images):
wget http://www.google.com
Downloading a complete page (including linked elements such as images):
wget -p http://www.google.com
Downloading multiple complete pages (up to 7 levels):
wget -rkpl 7 http://www.google.com
Downloading (mirroring) a whole site (up to 10 levels):
wget -m 10 http://www.google.com

