How to Easily Mirror an Entire Web Site Locally
It’s very easy to mirror an entire web site on your local machine thanks to the terminal command wget, here’s how to do it:
Launch the Terminal and type the following command, replacing guimp.com (a tiny sample website) with the URL you desire to mirror locally.
wget -m http://www.guimp.com/
This will download the entire website on your local drive in a directory named the websites URL… note that this isn’t a particularly effective way to truly backup a website and it’s functionality, it’s simply mirroring it locally.
Obviously this isn’t going to mirror databases or scripts, it’s only going to be an HTML version of a site.
Note: various readers pointed out that wget is not installed in Mac OS X by default and that you’ll need to install it using MacPorts, you can check out our past article on installing MacPorts or visit the developer website at macports.org. MacPorts is a very useful tool allowing you to easily install open source software packages and is highly recommended for moderate to advanced OS X users, or those interested in the command line.