Import users in ejabberd

ejabberd 2.1.0 includes support to import users data from XML files with the XEP-0227 standard format.

The import can be done using ejabberd WebAdmin or the ejabberdctl shell script.

How to import using ejabberd WebAdmin

Go to the database backup page and select what you prefer:

How to import using ejabberdctl

  1. Add in ejabberd.cfg the virtual hosts you will import. For example:
    {hosts, ["capulet.com", "montague.net", "shakespeare.lit"]}.
  2. Start ejabberd.
  3. Execute this command to import an XML file:
    ejabberdctl import_piefxis /path/to/file.xml
  4. If everything went right you don't get any error message.
Syndicate content