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

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

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

You’ll want to replace the “” and “[email protected]” to match your site. Photo remixed from an original by Jinho.Jung

Wgetting a Website [One Thing Well]

The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.


Leave a Reply