After moving my mail en calendar to the cloud I decided to also to stop hosting my own blog. I've been using Pebble for well over 5 years and have mostly been pretty happy with it. Why?

  • Running you own does consume some maintenance time (do upgrades, etc). Especially re-doing the tweaks to templates etc became a hassle.
  • I had occasional problems doing posts (typed in a full post, hit the button and ooops... post gone. May well be caused by local set up but even in that case it's even better to move it out).
  • It blocked me from doing major OS updates since I wanted to prevent downtime (and I finally want to upgrade my Mac Mini to Leopard).
  • It's dependent on the availability of my server and network connection. Both are pretty reliable but still...
  • Using Cloud services is this years hype ;-)

Getting a blog setup with Google Blogger is easy, but of course you also want to migrate the old blog posts and not break the links from other sources to you blog. I digged around hoping to find an easy way to migrate the blog posts to Google Blogger and somehow redirects visitors from the old to the new location... no luck. Google Blogger does have an import option, but it only imports it's own exports and the only tool I found migrates from Wordpress to Google Blogger. So I had to scratch my own itch and created a simple command line utility that:

  • Reads the original Pebble posts and posts them to Blogger. This includes comments but due to limitations in the Google Blogger API the details of the original poster of the comment had to be included in the comment text and I show up as the poster. (Google does not allow to specify another author as poster of a comment though the API to prevent spam.)
  • Validates links in blogs posts and attempts to fix them where possible (for example links between blog posts that would break when moving to new location). If it can't fix a link, it reports this in the log file.
  • Generate a redirects file that you can include in your Apache httpd.conf to redirect visitors that access the old location to the new location of a post.

You can find the utility here: Blogger Importer. Feel free to use or extend it. I did the trick for me, but maybe you need some additional features. The current version only works for Pebble but it is set up such that you can easily plug in other sources and migrate these to Blogger.

A limitation of hosting my blog at Blogger is that it's less easy to create plugins. For Pebble I created my own plugin that would post a message on Twitter each time I created/updated a blog post. There's no such plugin for Blogger (yet) and I don't think Google provides hooks in their Blogger Dashboard where I could stick that functionality in. There is a service (TwitterFeed) that does this, but then you'd have to provide your Twitter credentials to that site... not sure if I'd want to do that.

Another point I have to fix are the Google Maps integrations that I did for showing Skeeler routes. For Pebble I created a 'decorator' plugin that would do some tweaks to the blog post contents which caused it to show the skeeler route on a Google Map. This is now broken and I have to find a solution for that (worst case I'd have to 'hardcode' it into the blog posts themselves, would be nice if it's a more elegant solution though).

3 comments:

  1. Anavar said...

    Hi Gero, you really wrote this very well. Greetings and good luck with your blog.  

  2. winstrol said...

    Good read thank you.  

  3. Vang Vieng said...

    I have enough trouble migrating from wordpresscom to wordpressorg , never mind from pebble to blogger.  

Post a Comment