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

前端 未结 4 868
挽巷
挽巷 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:27

    Use following command:

    wget -E  -k -p http://yoursite.com
    

    Use -E to adjust extensions. Use -k to convert links to load the page from your storage. Use -p to download all objects inside the page.

    Please note that this command does not download other pages hyperlinked in the specified page. It means that this command only download objects required to load the specified page properly.

提交回复
热议问题