mirror http website, excluding certain files

前端 未结 4 2117
無奈伤痛
無奈伤痛 2021-02-14 19:17

I\'d like to mirror a simple password-protected web-portal to some data that i\'d like to keep mirrored & up-to-date. Essentially this website is just a directory listing wi

4条回答
  •  太阳男子
    2021-02-14 19:37

    wget -X directory_to_exclude[,other_directory_to_exclude] -r ftp://URL_ftp_server

    SERVER
        |-logs
        |-etc
        |-cache
        |-public_html
          |-images
          |-videos ( want to exclude )
          |-files
          |-audio  (want to exclude)
    

    wget -X /public_html/videos,/public_html/audio ftp:SERVER/public_html/*

提交回复
热议问题