Having established I would move from WordPress to MovableType, I needed a way to preserve the blog entries and comments during the preceding three months. Thankfully, MikeT has an article on the process he used. I thought I would elaborate slightly on his instructions.
For the sake of brevity, I will refer to $W as the location of the top-level wordpress directory. For my machine, this was /home/jim/www/w $M refers to the MovableType installation directory.
Rating:
4/5 (3 votes cast)
For the sake of brevity, I will refer to $W as the location of the top-level wordpress directory. For my machine, this was /home/jim/www/w $M refers to the MovableType installation directory.
- Back up your database. If you're on a linux machine using MySQL, the command will be something like this:
where:mysqldump -uwordpress -ptoomanypatches -hmysql.localhost.com myblog > mybackup.sql
You can find this information in lines two through six of your $W/wp-config.php file- wordpress is the user name used by your database
- toomanypatches is your database password
- mysql.localhost.com is the machine hosting your database
- myblog is the actual database created
- Place this script on your website in $W/wp-byebye.php. You'll run this from your web browser, e.g.:
http://www.localhost.com/wp-byebye.php
- Save its output into a text file. From your favorite internet browser File -> Save as -> byewp.txt of type text.
It's sad, but this is MovableType's delimited format for saving and restoring blogs. - Install Movable Type. Here are the basics. I dug around, setting up the individual archive to map entries to the same directory structure Wordpress used: /yyyy/mm/some_swarmy_title/.
In Wordpress, the URL is rewritten to automatically generate on the fly. MovableType pre-creates this. However, by mapping it to a directory, as above, any extension is hidden from the end user. - Copy the byewp.txt to your MovableType installation under $M/import/ The file name does not matter. If your blog is small enough, you can also upload this via browser.
- In MovableType, select the Import option.
- If it errors out, don't panic. You can reset the MovableType's database without messing up any of the core configuration:
delete from mt_entry;
delete from mt_comment;
delete from mt_category;
delete from mt_placement;
delete from mt_trackback;
alter table mt_entry auto_increment = 0;
alter table mt_comment auto_increment = 0;
alter table mt_category auto_increment = 0;
alter table mt_placement auto_increment = 0;
alter table mt_trackback auto_increment = 0;
- Configure templates! Mike offers a lot of detail on ways of going about this. Definitely download Akismet and Blogroll, and Mark Carey's excellent plugins Ajax Rating, Fast Search (because MT's is so dog slow) and Trusted Commenters. You may also find Arvind's Style Generator very helpful in selecting a motif that you like.
- Edit .htaccess - I left the Wordpress blog online for a week while I sorted through all of the files not found and such. The slugs and basenames used by Wordpress and MovableType, respectively, mostly matched, but there were still about 5% that did not. For these, I ran a couple of SQL queries:
From this, I generated a series of entries in .htaccess that looked like this:SELECT `entry_basename`, post_name
FROM `mt_entry`, wp_posts
WHERE post_date = entry_created_on and post_name <> entry_basenameRedirect permanent /2003/05/the_i90_floatin/ http://www.jimcarson.com/2003/05/the-i-90-floating-bridge/