Site backup via script
I was required to backup a company website, this backup had to be able to be stood up on a plain jane webserver. So after a bit of googling I came up with this. The tarball can be unpacked into the docroot standing the site up as it was the date it was backed up. Not entirely pretty but done this way to conform to govt record keeping requirements.
wget --mirror -p --convert-links -P ./$1 http://www.$1.com --no-check-certificate --quiet --no-host-directories tar cfz $1Website$(date +%F).tar.gz $1
Of course there was more to this script ie. initialisations, notifications, ftping to network share, but the main part (the actual copy of the site) is listed above.
nb. for this example let $1 = jeepmonkey