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

[...] – Install Sun Java and Tomcat on CentOS 5 saved by astrofusion2009-02-10 – Downloading sites using WGET saved by brettbarry2009-02-09 – Installing wget On Your Mac For Terminal saved by [...]