Migrating to Wordpress from Sphpblog
Today I finally managed to migrate this site to wordpress. Here’s a rough description of how I did it.
First off, I installed wordpress according to the official documentation. I then modified the original sphpblog2wp script so that it managed to convert the brackets “[]” used by sphpblog to ordinary html. I also added support for sending arguments to the script so that converting my roughly 50 posts wouldn’t be a horrific task. Have in mind that the modified script is very rough (!), but it worked for me.
Here is an example where I convert all posts (and comments) of march 2005,
onesome# php sphpblog2wp-v2.php /usr/local/www/data/content/05/03/
Connecting to MySQL...
Starting run for /usr/local/www/data/content/05/03/...
Resource id #7Post: /content/05/03//entry050317-234712.txt, inserted as ID 125
Resource id #9Post: /content/05/03//entry050317-234829.txt, inserted as ID 126
Resource id #11Post: /content/05/03//entry050317-235559.txt, inserted as ID 127
Resource id #13Post: /content/05/03//entry050317-233547.txt, inserted as ID 128
Resource id #15Post: /content/05/03//entry050101-233547.txt, inserted as ID 129
Resource id #17Post: /content/05/03//entry050323-233501.txt, inserted as ID 130
Resource id #19Post: /content/05/03//entry050328-131750.txt, inserted as ID 131
Resource id #21Post: /content/05/03//entry050330-002739.txt, inserted as ID 132
Resource id #23Post: /content/05/03//entry050322-094353.txt, inserted as ID 133
-- Comment: /content/05/03//entry050322-094353/comments/comment050322-125059.txt, inserted as ID 31
-- Comment: /content/05/03//entry050322-094353/comments/comment050322-132056.txt, inserted as ID 32
Resource id #30Post: /content/05/03//entry050317-233812.txt, inserted as ID 134
Resource id #32Post: /content/05/03//entry050317-234018.txt, inserted as ID 135
Resource id #34Post: /content/05/03//entry050317-234116.txt, inserted as ID 136
Resource id #36Post: /content/05/03//entry050317-234459.txt, inserted as ID 137
I am now running a modifed version of a theme called squible.
