wget to mirror a website

Wondering how to mirror a website using wget? limit to download to some certain domains and directories only?

-m is for mirror
-k is for convert links to point to local file
-p is for download pre-requists images
–domains
–include-directories are self explanartory
wget -mkp –domains=”www.yourdomain.org,yourdomain.org”
–include-directories=”/a/certian/subdirectory/only/” http://www.yourdomain.org/a/certian/subdirectory/only/index.html

Leave a Reply

Your email address will not be published. Required fields are marked *

one × 1 =