Howto Mirror a website with wget

Sometimes you find a website that is just awesome, and you want a local copy of it. Here is how you do it:

Put the above into a file called mirror.

Then mv the file to a location in your path, like $HOME/bin if you have that, or /usr/sbin or some other place. The above will go slowly, so that you don’t spam the server with too many requests. It will also help you avoid causing errors on their site if they depend on certain headers for statistics or routing.

About Jason

I am a 31 year old programmer living in the south of France. I currently work actively in the fields of Ruby/PHP/Javascript and server/website administration.
This entry was posted in Computer Science, Information, Linux, Tips and Tricks. Bookmark the permalink.