(update: Migrated the code to GitHub and implemented minor improvements.)
It has finally happened: this blog is migrated away from Drupal to Blogger. My reason to move towards Blogger (and thus not away from Drupal) is very simple: No need to patch/update the application.
An important thing for me is that I wanted to keep all my blogposts, timestamps and comments. Unfortunately it looks like most people move away from Blogger towards Drupal and the web is full of code and information to export your data from Blogger in XML and then import it into Drupal.
But information how to upload everything into Blogger was nihil.
So I wrote a php script to do the export while keeping:
- tags / categories
- publishing date
- It seems to work only for Drupal 6, not 7.
- Comments are (partially) anonymized because of a security feature of Blogger
- URLs are not customizable, so you will create dead links
- Images are not changed or imported. So manual work is still necessary
Save the file and import it again in Blogger. It usually takes some time, but in the end you get the message that everything is imported correctly.
The code to do this is located here: https://github.com/cvandeplas/inet_scripts/blob/master/drupal_to_blogger.php .
A version for Drupal 7 has been written by Nico Schlömer is located here: https://github.com/nschloe/drupal2blogger