Saturday, June 24, 2006

Mirroring websites with wget

I'm sure it's already quite well known, but I've just discovered how to mirror web sites with wget. I'd been wanting to make sure I had a back up of this blog and was already sure that wget would be the tool to use. A quick search turned up this command:

wget --mirror –w 2 –p --html-extension –-convert-links –P /home/pat/documents/blogger/


get files recursively, but depending on timestamp


wait a number of seconds between retrieval


download all page requisites such as images


makes sure that all the copies of files have .html file extensions


convert links suitable for local viewing


path to save files to

No comments: