Using wget to recursively fetch a directory with arbitrary files in it

前端 未结 14 2114
再見小時候
再見小時候 2020-11-27 08:31

I have a web directory where I store some config files. I\'d like to use wget to pull those files down and maintain their current structure. For instance, the remote directo

14条回答
  •  情书的邮戳
    2020-11-27 09:10

    For anyone else that having similar issues. Wget follows robots.txt which might not allow you to grab the site. No worries, you can turn it off:

    wget -e robots=off http://www.example.com/
    

    http://www.gnu.org/software/wget/manual/html_node/Robot-Exclusion.html

提交回复
热议问题