I’m pretty sure I’ve got this covered somewhere on my blog, but unable to find my own blogpost :-) Must be because of switching domains for my blog and Google’s indexi not having caught up yet. Ah here it is.
Hmz. Anyway … I finally found my old tell-a-few.com 2010 blog SQL dump with blogposts going as far back as 2001!
However trying to import that directly into Blogger won’t work. So … I setup a local webserver environment with XAMPP, imported the SQL dump into an fresh WordPress 2.9.2 installation (what I think I was running at the time).
Now trying to access a blog gives an error. Of course you first have to edit the wp_options table and reset the admin login, before you’re able to access the backend … with 1000+ blog posts! Next step … exporting.
Go to tools, export and download the export file. This gives you a XML file … however file format is WordPress it’s own WXR (Wordpress eXtended RSS). You cannot import this into blogger, and although this online WXR to Blogger converter works great, it also has a file-size limit of 1MB. And my file dump is close to 3MB. Of course I can try to split it, which takes a lot of manual labor. OR I find a different and/or faster solution. So I gave the ‘Google Blog Converters AppEngine’ a try. Just download and unpack it (into an easy to access directory). Now the ‘tough part’; open a command line, and access the directory with the bin files, and run the “wordpress2blogger.bat” file. Python error. Hmz, should work out of the box. Not in the mood for troubleshooting this, so booted to Mac OSX.
Ran the scrip bin/wordpress2blogger.sh wp2010.xml … and get an error: “Import WordPress Document is not valid”. Troubleshooting links with similar issues.
- http://code.google.com/p/google-blog-converters-appengine/issues/detail?id=45
- http://code.google.com/p/google-blog-converters-appengine/issues/detail?id=38
So basically WordPress has wrong CDATA formatting. *sigh* What’s that saying again from Jim Rohn? “Don’t wish life were easier, wish you were better!” Myeah. Booting back to Windows, upgraded WP 2.9.2 to latest version. Deleted all pages and comments. Exported the new posts file. Ran the conversion script. WORKS! BTW? It outputs the conversion to the screen. So you’re better of running: bin/wordpress2blogger.sh wp2010.xml >new.xml
That’s it? Nope, we’re not finished yet. Search & replace for about 2100 old domain links, into new links. Oh LOL. Analysing the contents of the export makes me both laugh and cry at the same time. A ton of deeplinks that are not going to work after importing, a lot of youtube videos won’t play (because of using special wordpress youtube plugins), etc. etc. At least my blog has grown from close to 500 to 1500+ posts! Going back as far 2001(!)
How much time I spend at this? Close to 7 hours, but it was worth it!
- My Dutch / NL WordPress Translation contributions: October 2022 - October 9, 2022
- My Dutch / NL WordPress Translation contributions: August 2022 - August 23, 2022
- [NL] Ultra Light digital nomad Europe travel with Ryanair / Wizz Air - August 20, 2022
- My Dutch / NL WordPress Translation contributions: July 2022 - July 27, 2022
- My Dutch / NL WordPress Translation contributions: April 2022 - April 2, 2022
- My Dutch / NL WordPress Translation contributions: March 2022 - March 10, 2022
- What is the best global travel community for 2022 ? - February 20, 2022
- My Dutch / NL WordPress Translation contributions: February 2022 - February 3, 2022
- My Dutch / NL WordPress Translation contributions: January 2022 - January 4, 2022
- My Dutch / NL WordPress Translation contributions: October 2021 - October 7, 2021