ejabberd 2.1.0 includes support to export users data from the whole server or a virtual host into XML files with the XEP-0227 standard format. Later you can import those files in other Jabber servers.
Exported data:
- User, password
- Roster list
- Offline messages
- Private XML Storage
- vCard
The export can be done using ejabberd WebAdmin or the ejabberdctl shell script.
How to export using ejabberd WebAdmin
Go to the database backup page and select what you prefer:
How to export all server using ejabberdctl
- Make sure ejabberd is started.
- Execute this command, indicating the directory:
ejabberdctl export_piefxis /path/to/export/
- If everything went right you don't get any error message, and you will get one or several XML files like this:
20090805-120450.xml 20090805-120450_capulet_com.xml 20090805-120450_jabber_example_org.xml 20090805-120450_localhost.xml
How to export a virtual host using ejabberdctl
- Make sure ejabberd is started.
- Execute this command, indicating the directory and host to export:
ejabberdctl export_piefxis_host /path/to/export/ jabber.example.org
- If everything went right you don't get any error message, and you will get one or several XML files like this:
20090805-120723_jabber_example_org.xml