Those of you that follow my blog have already noticed that in the past days a major change to the website has happened.
In fact, I moved from Typo to WordPress.
The most difficult part is not to find a theme, fix the CSS, play with the sidebar or anything like that; the mess comes when you have to migrate the data (posts, categories, tags, comments, …).
In order to do so I readapted a Ruby script to work with the latest version of the two blog engines (Typo 6.0.5 vs WordPress 3.1.2). You can find my version here.
To use it, just copy it inside your $TYPO_ROOT/script directory. Then simply issue
RAILS_ENV=production ruby script/wp_export.rb > out.wxr
and wait for the magic to happen.
Once the scripts ends, out.wxr file will contain all the content you had on your previous Typo installation.
In order to proceed, you have to install WordPress Importer, a plugin that allows you to import a WordPress blog from file. Install it, activate it, then import the file generated in the step above and you’re all set.
I can’t seem to get your script (or its previous version) to work. It fails with http://pastebin.com/5dzmdeE0
Any thoughts?
I think it depends on where you put the script file.
I specified to put it into $TYPO_ROOT/script directory. Where did you put it?
I’m on shared hosting, so my equivalent is /~/typo/script. Should be the same place though.
That should be fine. I have the same error as your’s if I move the file out of the
scriptdirectory.Try to set the paths to the file right in the script file.
Try something like:
require '/home/user/typo/config/application'Thanks, all working!
Glad to have helped
This can be a actually engaging publish! Thank you for this! Together with sincerely Luke aka couchgool.