bye_wordpress
bye_wordpress copied to clipboard
CakePHP shell for migrating a Wordpress database to Croogo
/*
- CakePHP shell for migrationg a Wordpress database to Croogo
- Copyright (c) 2009 Matt Curry
- www.PseudoCoder.com
- http://github.com/mcurry/bye_wordpress
- @author Matt Curry [email protected]
- @license MIT
*/
/* Description */ A CakePHP shell for migrationg a Wordpress (tested on v2.8.6) database to Croogo.
/* Warning */ I'm done with this code. I migrated my two sites, so I have no reason to keep it up.
/* Gotchas */
- Make sure the two databases have the same character encoding.
- Uploaded files aren't moved - just the DB record. Make sure to manually copy /wp-content/uploads to /app/webroot/uploads
- If you want to use Tags and Categories the have two revcords in the vocabularies table with alias 'categories' and 'tags'.
- Draft posts aren't moved.
/* Instructions */
- Download the and install croogo (http://www.croogo.org).
- Download the plugin to /app/plugins/bye_wordpress
- Run it cake/console/cake bye_wordpress
/* Parameters */ -host Wordpress DB host. defaults to localhost.
-database Wordpress DB name. defaults to wordpress.
-login Wordpress DB login. defaults to localhost.
-password Wordpress DB password. defaults to empty.
-prefix Wordpress table prefix. defaults to wp_.