mirror a site with wget and download static media

Posted by mountainswhim on Server Fault See other posts from Server Fault or by mountainswhim
Published on 2010-02-25T02:20:01Z Indexed on 2010/04/17 21:43 UTC
Read the original article Hit count: 217

Filed under:

I'd like to mirror a site with wget and convert all the links to the local copies I've downloaded. So far that's easy all I have to do is wget -mk http://site.com

However all of the static media is located in a different domain, if I follow all of the foreign hosts using the -H option it will download that static media files, but it will also download anything else externally linked.

Is there a way to specify 'only download foreign hosts specified in list X'?

© Server Fault or respective owner

Related posts about wget