Maven 2JUnitXerces 3RomeGlassfishcommons-genitalia
Indeed, in order to do the first backup, I don't really want to have to download 30MB of dependencies to start with. So, the real requirements are:
- JRE 1.5
- an Atom feed for your blog
How does it work? Download BackupJRoller.zip, you will find inside: license (GPL), template (jroller_atom_feed.tpl) for the Atom feed, and the Java class (com.jroller.kame.BackupJRoller) in source and binary forms. Go inside your blog configuration, tab Preferences, sub-tab Templates, create a new template (Add a new template) named for instance tetsuwan. Find your new template in the list, note its URL path in the Link column (in the example, it's tetsuwan as well), and edit it. In the Template textarea, copy and paste the content of jroller_atom_feed.tpl, and Save.
You're ready to export! As you are hosted on JRoller, you are a Java pro, and the command line has no secret for you. Open a shell, change to the right directory (hint, where you unzipped the zip), and type the following line, with the right values:
java -classpath . com.jroller.kame.BackupJRoller http://www.jroller.com/page/your_login/tetsuwan
After that, everything went without a hitch, you have your backup! What can you do with it now? Unfortunately, not many tools are useful for the moment. You have this big XML file in Atom 1.0 with all your posts and comments, and it's up to you to do something useful with it :-) Don't forget to clean your JRoller cache after the backup (Preferences > Maintenance > Flush Cache), this data doesn't need to linger.
From a techical point of view, the source code is fully undocumented, in mixed French-English, and loaded with cultural private jokes. But if you're proficient in Java, there is nothing there to stop you, as it is a straightforward use of the standard Java API. It has been developped with the ultimate IDE: GNU Emacs + JDEE.
2 réactions
1 De Debashish - 12/06/2006, 08:56
There is also a related post on how to migrate a JRoller blog (together with comments) to Wordpress using blog's RSS Feed here.
2 De Damien B - 12/06/2006, 09:28
Hello, I knew your work, but it's not a viable generic "export and backup" solution, because JRoller limits the feed to 100 posts. It needs an extra step, that my little class provides :-) Plus, this uses the standard way in Atom to represents the comments; with the standardisation on Atom, the new importers should support this format out of the box. Thanks for the pointer anyway.