revjim.net

February 16th, 2003:

LiveJournal to MovableType migration

If you didn’t notice, the revjim.net archives now contain data from April of 2000 through August of 2002 (which is when I started using MovableType). While most of the data converted cleanly, I’m relying on MovableType to do it’s “Convert Breaks” magic on many of the imported entries because they were entered in plain text originally. MovableType fails at this in certain circumstances, so every page might not validate as XHTML 1.0. If you see any that don’t, let me know, and I’ll do my best to get them all cleaned up.

The import process was rather interesting. I initially created a small PHP script that would grab the entries one at a time from their former location (LiveJournal) using XMLRPC, and then insert them into MovableType using XMLRPC. MovableType was way too slow with this method. Most entries were taking about one minute to publish, while others took considerably longer. I even disabled all of my indexes, all of my pings, and TrackBack autodiscovery. But that didn’t seem to make a difference. After about six hours of time, and several instances of MovableType returning XML-RPC faults, I decided to go a different route.

I had my script generate a MovableType import file. Running it took less than two minutes and, when it was complete, I had an importable file ready to go. MovableType gladly took that, however, I still had to rebuild. Since I have over 2000 entries now, rebuilding takes quite some time.

If anyone else is considering migrating LiveJournal data (or any kind of data) into MovableType, I recommend using the Import feature, and not trying to insert them directly.