Blog Migration Secrets
So given that the world (still) lacks a decent common export format for blog software, you might wonder how I managed to move the collection of assorted nonsense that is girtby.net from Mephisto to Wordpress.
Actually, there’s a real chance you might not wonder this. But let’s press on anyway for the sake of Google and future generations.
All the hard work was actually done by Daniel Dave Murphy over at schwuk.com who published the script and a bzr branch. Jason Morrison added MySQL support and published a diff.
I’ve made some changes of my own and published the results. You can get either:
- Just the latest m2wp.py script incorporating Jason’s and my patches, or
- A bzr branch, continuing the spirit of being all modern and distributed.
So what sort of changes did I have to make?
Well, Dave’s script extracted the rendered HTML into the Wordpress database. This is OK but it means you can’t go back and edit old posts in their source form (in my case, Markdown format). So to use my version of the script you need to set up your content filters in Wordpress to match those in Mephisto.
There are a couple of other minor changes, specifically handling NULL as well as empty content (for whatever reason I had some of these fields in my Mephisto database), and a minor formatting problem which prevented the “Read More” links from working properly.
Anyway that’s my version of the script, and now that that’s out of the way I can get back to procrastinating about doing anything with CSS.
4 Comments