A A A i

dimanche 11 juin 2006dimanche 11 juin 2006

Export and backup your JRoller blog

As you have noticed, it is not possible since several years ago to export your data (posts ans comments) from JRoller. Being able to backup soothes the mind, and allows you to move your blog more easily (in case you want to leave and there is something to import the data at the other side). Having checked two days ago for the last time, I did not find anything to do that easily... being on J(ava)Roller, there's no reason I can't code that. What I want for this micro-project is:

  • Maven 2
  • JUnit
  • Xerces 3
  • Rome
  • Glassfish
  • commons-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 wit it now? Unfortunately, not many tools are useful now. 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.(Cyberpunk, 2006/06/11 00:09) lien permanent

Commentaires ici et ailleurs :

There is also a related post on how to migrate a JRoller blog (together with comments) to Wordpress using blog's RSS Feed here.

Posté par Debashish, le lundi 12 juin 2006 à 08:56 #

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.

Posté par Damien B, le lundi 12 juin 2006 à 09:28 #


jeudi  8 juin 2006jeudi 8 juin 2006

Sauvegardez votre blog JRoller

Depuis plusieurs années, l'export de ses données (posts et commentaires) n'est plus disponible pour l'utilisateur de JRoller. Une sauvegarde pourtant, c'est rassurant, et ça permet d'aller voir ailleurs si on y est (et si un outil d'import est présent à l'autre bout). Après avoir vérifié aujourd'hui encore, je n'ai pas trouvé de personnes ayant programmé le nécessaire. Qu'à cela ne tienne, après tout on est sur J(ava)Roller, il ne faut pas avoir peur de mettre les mains dans le cambouis. Les prérequis pour un tel micro-projet sont :

  • Maven 2
  • JUnit
  • Xerces 3
  • Rome
  • Glassfish
  • commons-genitalia

Tout ça c'est bien gentil, mais s'il faut télécharger 30Mo de dépendances avant de commencer à faire quelque chose, on n'est pas arrivé. Les pré-requis pour un tel micro-projet sont donc :

  • JRE 1.5
  • un fil Atom pour votre blog

Comment ça marche ? Téléchargez BackupJRoller.zip, vous trouverez dedans : la licence (GPL), le template (jroller_atom_feed.tpl) pour le fil Atom et la classe Java (com.jroller.kame.BackupJRoller) sous forme de source et de binaire. Allez dans la configuration de votre blog, onglet Preferences, sous-onglet Templates, et créez un nouveau template (Add a new template) nommé par exemple tetsuwan. Repérez votre nouveau template, notez bien ce qui lui correspond dans la colonne Link (dans notre cas c'est encore tetsuwan), et éditez-le. Dans la partie Template, copiez-collez le contenu du fichier jroller_atom_feed.tpl, et sauvegardez (Save).

Vous êtes prêt ! Comme vous avez votre blog sur JRoller, vous êtes un pro du Java, et la ligne de commande n'a pas de secret pour vous. Ouvrez donc une invite de commande, placez vous dans le bon répertoire (indice, là où vous avez décompacté le zip), et tapotez en adaptant à votre cas :

java -classpath . com.jroller.kame.BackupJRoller http://www.jroller.com/page/votre_login/tetsuwan

Voilà, tout c'est bien passé, vous avez votre sauvegarde ! Qu'en faire maintenant ? C'est là que le bât blesse. Vous obtenez donc un gros fichier XML au format Atom 1.0, avec tous vos posts et les commentaires... et ? Et c'est tout, à vous de l'exploiter :-) Après la sauvegarde, n'oubliez pas de vider la cache de votre blog (Preferences > Maintenance > Flush Cache), ça ne sert à rien de laisser traîner ces données.

D'un point de vue technique, le code source est abondamment non-commenté, avec des private joke et du franglais, mais si vous vous débrouillez en Java, ça ne vous posera pas de problème. Le tout a été développé avec l'IDE du futur : GNU Emacs + JDEE.(Cyberpunk, 2006/06/08 12:56) lien permanent


mardi  6 juin 2006mardi 6 juin 2006

Sortez le par la porte, il reviendra par Fenêtre

Passant sur ce blog, je constate des temps de chargement plus élevé que d'habitude, le FIR qui prend peur, et de curieuses références à ®Windows ®Live dans les domaines contactés. Que diable ! Je serais devenu un suppo de Microsoft ? J'avais déjà expliqué d'où vient la petite carte en bas à droite, fournie par Feedmap. Et bien les "technologies" Microsoft sur lesquelles elle reposait ont visiblement pris du galon pour être intégré au Jscriptiathan, j'ai nommé ®Windows ®Live. Quel problème me direz-vous ? A part le fait que la carte est encore plus mauvaise que la version précédente (avec une ®Innovation ®Microsoft, la French Town à Shanghaï...), et qu'un de leur script part en boucle ? Rien, pas vraiment d'autre problème, c'est juste mauvais, on se demande s'ils n'auraient pas du lui donner le même sort qu'à Vistouille et retarder cette magnifique avancée. Allez hop, à la poubelle le déchet de Redmond.

feedmap, compaq, à jeter
Adieu

(Cyberpunk, 2006/06/06 01:55) lien permanent


vendredi  2 juin 2006vendredi 2 juin 2006

La dure vie du spammeur

Vous connaissez tous cet animal mythique, le crocolion, qui est tout le temps très, très énervé. Et bien pour le spammeur c'est pareil, il est tout le temps très énervé. La raison en est simple, regardez la capture d'écran ci-dessous, prise chez ces commerciaux libéraux de chez dolist.net :

Crocolion

Et oui, le spammeur utilise des logiciels Microsoft, difficile après ça de passer une bonne journée.(Cyberpunk, 2006/06/02 00:38) lien permanent


qui est

nom : Damien Bonvillain
courriel : kame à cinemasie.com
bloggercode:
B9 D+ T+ K S F I- O X+ E- L- C-- Y1 R+ W- P+ M5 N-- N+
un peu plus : Google Whoring tortue

Messagerie instantanée

    les koms

    m'enfin

    Quant à mes invectives imaginaires, je vous laisse chercher un endroit adéquat pour les ranger. Elles craignent la lumière, si vous voulez une piste.
    Lien associé
    Eolas - « Aimez moi, c'est un ordre. »

    les bons vieux


    archives

    « juin 2006 »
    lunmarmerjeuvensamdim
    1234
    567891011
    12131415161718
    19202122232425
    2627282930

    XML RSS 2.0 XML RSS 2.0 commentaires A A A i

    liens

    allégeance

    Blog sans chat

    colophon

    Propulsé par pointClairMerci à la caféineDevelopment with EmacsBadges from GTMcKnightFreeListed on BlogSharesGeoURL