Linux wget all files from site and external domain

The trick is to supply the -H option, which enables spanning across hosts. Supplying the -D option does not turn on the -H option automatically.
wget http://www.primarydomain.com --recursive -H -D www.primarydomain.com,www.secondarydomain.com
Posted by
Snippet Viewed 1522 times.

Share your Linux code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.

 

Submit | Browse

Most Recent linux snippets

Most Viewed