Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to backup content of my blog which is powered by I'd like to save all texts and images to the local disk. Ability to browse it offline is a plus.

What I've already tried:


wget -mk http://myblogurl

It downloads the first page with list of posts, then stops with "20 redirections exceeded" message.


It downloads the first page with redirection to the home page instead of real page content.

Edit: The url of the site I'm trying to backup is

share|improve this question
I tried on a random user on posterous, and it worked without any problems. How about giving us the actual site url? – gorilla Jan 23 '10 at 0:45
Link added. See bottom of the question. – Martin Vobr Jan 23 '10 at 1:21
Just tried, wget picked up the your full blog contents – Sathya Jan 23 '10 at 5:33
Could you post the command line? In my case the 'wget -mk'; get index.html only. No images are downloaded. No pages with posts are downloaded. I'm using wget 1.11.3 from cygwin running on WinXP. – Martin Vobr Jan 23 '10 at 10:37
@Martin Vobr : wget -mk GNU Wget 1.11.1 on openSUSE 11.0 – Sathya Jan 23 '10 at 17:03 does maintain an API that might help you. In particular, their API might be of use. You may use it to obtain an XML file containing all of your posts and their content.

For example, retrieves all 12 posts that I've made to Posterous.

share|improve this answer

This worked for me:

wget -r -l inf -k -E -p -nc

It seems like using -m turns on -N (timestamping) and posterous is not sending last modified headers which upset wget, so instead I just used -r -l inf directly.

The options used are:

-r recursive
-l inf infinite depth
-k suffix html files with .html
-E update the saved files with links to local files
-p download page resources
-nc don't redownload urls more than once

This command is still not downloading resources from other domains, which means it doesn't fetch the images as they're hosted on a different CDN.

share|improve this answer

Managed to download at least all html content. Following code seems to download all pages from the blog (using Wget 1.11.3 on Windows XP):

wget -mk*

Posts images are still not downloaded. It looks like it's probably because they are stored on the different domains.

Html content is on* while images are in* and

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .