Created
May 17, 2013 15:32
-
-
Save robinnorth/5599835 to your computer and use it in GitHub Desktop.
Bash: Create a static mirror of a website using wget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget --mirror --no-parent --adjust-extension --restrict-file-names=windows --convert-links --page-requisites --verbose --directory-prefix=/home/user/path http://www.example.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Long-syntax/verbose command switches used for clarity, but can be substituted for short switches: use
wget --help
for more information.Add
--trust-server-names
to trust redirect headers.