Skip to main content
Home
badllama.com
  • Search
  • Log In

Create a static archive of a site

bchavet's picture

Thu, 12/18/2014 - 16:44 by bchavet

There are many ways to do this, but here is a quick way to use wget. "-l 2" tells wget to only go 2 links deep from the URL provided, so if you need more, change that value.

wget -p -r -N -l 2 -nc --no-remove-listing -k -E https://www.example.com/

If you're archiving the site simply for future reference, it might be beneficial to remove large files. Such as anything bigger than 2MB.

find www.example.com/ -size +2M -exec rm {} \;
Powered by Backdrop CMS