Tip: How to Mirror a Website

Sick of the /. effect? Got a site you want to save to your local PC for quick, offline access later? Use wget like so:

wget -r -l1 -k -np -nH -P local_directory http://www.busysite.com/mirror_me/

This uses the wget utility built into almost all Linux distros, and parameters tell it to make a mirror in local_directory, recursing 1 level deep, converting the links to local ones, not ascending to the parent directory, and not writing hostnames to directories. More info at the wget man page.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s