Skip to content

Instantly share code, notes, and snippets.

@heyalexej
Last active January 6, 2021 16:05
Show Gist options
  • Save heyalexej/8519021 to your computer and use it in GitHub Desktop.
Save heyalexej/8519021 to your computer and use it in GitHub Desktop.
Helps you to download a WordPress (and other sites) from the command line and reuse as static HTML.
wget --html-extension --recursive --page-requisites --convert-links --mirror --user-agent="Mozilla/1.22 (compatible; MSIE 2.0; Windows 95)" http://www.yourdomain.com
@heyalexej
Copy link
Author

We use the coolest user agent in the world to leave a nice message to the admin in the server log files.
After the download completed, scp or rsync the entire folder to your server.

Have fun.

Additionally, RTFM.
http://www.gnu.org/software/wget/manual/wget.html
http://linux.die.net/man/1/scp
http://linux.die.net/man/1/rsync

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