What's the best way to save a complete webpage on a linux server?

前端 未结 4 864
挽巷
挽巷 2021-01-31 20:57

I need to archive complete pages including any linked images etc. on my linux server. Looking for the best solution. Is there a way to save all assets and then relink them all t

4条回答
  •  野的像风
    2021-01-31 21:19

    wget can do that, for example:

    wget -r http://example.com/
    

    This will mirror the whole example.com site.

    Some interesting options are:

    -Dexample.com: do not follow links of other domains
    --html-extension: renames pages with text/html content-type to .html

    Manual: http://www.gnu.org/software/wget/manual/

提交回复
热议问题