backup - How do you use wget (with mk option) to mirror a site and its externally-linked images? -
i know of wget -mkp http://example.com mirror site , of internally-linked files.
but, need backup site images stored on separate domain. how download images wget, , update src tags accordingly?
thank you!
a modified version of @patrickhorn's answer:
first cd
top directory containing downloaded files.
"first wget find pages recursively, albeit 1 domain"
wget --recursive --timestamping -l inf --no-remove-listing --page-requisites http://site.com
"second wget spans hosts not retrieve pages recursively"
find site.com -name '*.htm*' -exec wget --no-clobber --span-hosts --timestamping --page-requisites http://{} \;
i've tried this, , seems have worked - .htm(l) pages site i'm after, external files. haven't yet been able change links relative local copies of external files.
Comments
Post a Comment