Migrating Existing Blogs to Blogofile¶
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.
Download the converter script:
Install SQL Alchemy:
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.
table_prefixshould be the same as you setup in wordpress, (or blank “” if none)
db_connpoint to your database server. The example is for a MySQL hosted database, but see the SQL Alchemy docs if you’re using something else.
In a clean directory run the export script:
If everything worked, you should now have a
_posts directory containing valid Blogofile format posts which you can copy to your blogofile directory.
to be written.