Offline mirror a website using wget

· 1 min read

Use the following wget command to mirror a website:

wget -mkpb some-website-url
  • -m mirrors the entire website
  • -k converts all links to suitable web viewing.
  • -p downloads all required files like css, js, etc.
  • -b wget will run in the background

This method won’t work for many websites, as their servers will block wget. I will update this post soon; we can use user agents in wget to make it appear as a browser.

wget to mirror websitemirror websitewgetrecursice downloads