Last active
January 6, 2021 16:05
-
-
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.
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 --html-extension --recursive --page-requisites --convert-links --mirror --user-agent="Mozilla/1.22 (compatible; MSIE 2.0; Windows 95)" http://www.yourdomain.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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