To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
Migrate from Openfire to ejabberd via jabberd14 in Java
Submitted by mfoss on Sun, 2008-02-24 22:07
This tutorial will help you to migrate an Openfire database to ejabberd. Since there is no direct way to migrate from Openfire to ejabberd, you first need to migrate from Openfire to jabberd 1.4 XML spool files with a Java program. Afterwards you can complete the migration process by pointing ejabberd to the directory containing the jabberd 1.4 compatible XML spool files.
Conversion program written by: Alexander Semenov (bohtvaroh)
Install the Import/Export Plugin via the Openfire Webinterface.
Export your database to a file, for example "myopenfire.xml".
To execute the program you need Java 5 or higher. This is the help:
$ java -jar openfire-jabberd-convertor.jar
You must specify three arguments:
* path to openfire exported user file
* path to the output jabberd spool folder
* target domain name (e.g. jabby.org)
So, for example:
$ java -jar openfire-jabberd-convertor.jar myopenfire.xml /tmp/jabberspool/ jabby.org
Parsing openfire users file...
138 users found.
Populating spool directory for domain 'jabby.org'...
exporting user: bob@jabby.org ...
exporting user: jackeline@jabby.org ...
[...]
exporting user: tom@jabby.org ...
Finished.
You can now import it to your jabberd or ejabberd server.
After you created successfully the spool directory, you can have a look at the user xdb-files, to check if all seems to be correct.