wget – Copy an Entire Website

A very simple yet useful and effective wget command for you to mirror an entire website to your local machine.

  • -r: recursive download
  • -nc: no-clobber or skip downloads on existing files
  • -p: get all page requisites to properly display html
  • -k: convert links to working local files
  • -np: don’t ascend to parent directory
  • –user-agent: as AGENT
  • –html-extension: make sure downloaded files will have its corresponding suffixes
  • –restrict-file-names: filenames that will also work on windows
  • –domains: domain/s to be followed