Convert A Blog To A Static Website With Wget And Rsync

If you have a blog that you no longer wish to keep interactive, you can use two little command-line utilities, wget and rsync, to easily convert your blog into a static site.

Wget is a handy little tool that we've featured before as a way to mirror an entire website, schedule downloads, automatically download music and more. It's available for Mac OS X, Windows and Linux (usually installed already).

Rsync is another ancient utility for file mirroring (we've seen it handy for mirroring folders between a Mac and PC and syncing two iTunes libraries).

This tip from One Thing Well for converting a blog into a static site involves really only two commands. In wget:

wget -m -p -P ~/website example.com

And then later, after the download finishes, in rsync:

rsync -avz --delete ~/website/ [email protected]:path/to/website

You'll want to replace the "example.com" and "[email protected]" to match your site. Photo remixed from an original by Jinho.Jung

Wgetting a Website [One Thing Well]


Comments

Be the first to comment on this story!