Unless you’re starting a brand new blog from scratch, you’re probably going to want to migrate an existing blog to Blogofile. When migrating, you have to consider several things:
- Migrating existing blog posts.
- Migrating existing blog comments.
- Migrating permalinks and other search engine indexed URLs.
Before you bring your Wordpress blog offline, install the Disqus wordpress plugin. With this plugin, you can export all your comments from your wordpress database offsite into your Disqus account.
In your blogofile config file, set the blog.disqus.enabled and blog.disqus.name settings appropriately.
Download the converter script:
Install SQL Alchemy:
easy_install sqlalchemy
If your database is MySQL based, you’ll also need to download MySQLdb, which you can apt-get on Ubuntu:
sudo apt-get install python-mysqldb
If you’re using some other database, install the appropriate DBAPI.
Edit wordpress_schema.py:
In a clean directory run the export script:
python wordpress2blogofile.py
If everything worked, you should now have a _posts directory containing valid Blogofile format posts which you can copy to your blogofile directory.
You’re probably going to want to retain the exact same permalinks that your wordpress blog had. If you’ve been blogging for long, Google has inevitably indexed your blog posts and people may have linked to you; you don’t want to change the permalink URLs for your posts.
The converter script should transfer over the permalinks directly into the YAML Header of the blog post. You may also want to configure the blog.auto_permalink.path setting in your configuration file to create the same style of permalink that you’re using in wordpress.
to be written.