Backup an entire website using wget

Posted Over 9 years ago. Visible to the public.

You need to copy an entire website? Use wget like this:

wget -kr http://host.tld/

This will fetch all content (-r for recursive) and rewrite links inside the documents to make them suitable for local viewing (-k).

Thomas Eisenbarth
Last edit
Over 9 years ago
License
Source code in this card is licensed under the MIT License.
Posted by Thomas Eisenbarth to makandra dev (2014-09-30 10:23)