Skip to content

Instantly share code, notes, and snippets.

@robinnorth
Created May 17, 2013 15:32
Show Gist options
  • Save robinnorth/5599835 to your computer and use it in GitHub Desktop.
Save robinnorth/5599835 to your computer and use it in GitHub Desktop.
Bash: Create a static mirror of a website using wget
$ wget --mirror --no-parent --adjust-extension --restrict-file-names=windows --convert-links --page-requisites --verbose --directory-prefix=/home/user/path http://www.example.com/
@robinnorth
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment