Import from ejabberd XML export

402 views
Skip to first unread message

elf Pavlik

unread,
Sep 29, 2011, 9:15:39 PM9/29/11
to prosody-users
Hello,

I want to migrate a virtual host from ejabberd run by my friends to prosody which I now run myself. I asked them to export it as stated on this page: https://support.process-one.net/doc/display/MESSENGER/Export+users+from+ejabberd

Do I have an easy way of importing it to prosody? With import you describe on: http://prosody.im/doc/creating_accounts#importing_from_ejabberd they would need to dump all server not only my virtual host?

Thank you for clarifying!
=)
~ elf Pavlik ~

Matthew Wild

unread,
Sep 30, 2011, 4:21:22 PM9/30/11
to prosod...@googlegroups.com
Hi,

On 30 September 2011 02:15, elf Pavlik <perpetua...@wwelves.org> wrote:
> Hello,
>
> I want to migrate a virtual host from ejabberd run by my friends to prosody which I now run myself. I asked them to export it as stated on this page: https://support.process-one.net/doc/display/MESSENGER/Export+users+from+ejabberd

Great, that's the standard format now.

> Do I have an easy way of importing it to prosody? With import you describe on: http://prosody.im/doc/creating_accounts#importing_from_ejabberd they would need to dump all server not only my virtual host?

Yes, we have an importer for this kind of data. It's not yet built
into the new migration tool, but runs separately (we're working on
that). You can find it in the tools/ directory of the Prosody source
download or repository, or you can fetch it from here:
http://prosody.im/files/xep227toprosody

# Create temporary data directory
mkdir data

# Read XML and dump user data to data/*
lua xep227toprosody /path/to/ejabberd_export.xml

# Move data to Prosody's data directory
mv data/* /var/lib/prosody/

Depending on how/where you installed Prosody your data directory may
not be /var/lib/prosody. If it's not and you can't find it, or if you
have any other problems, just let me know.

Hope this helps,
Matthew

elf Pavlik

unread,
Sep 30, 2011, 4:59:01 PM9/30/11
to prosody-users
Hi Matthew,

Great! That clarifies everything, once my friends give me exported XML I should have no problem with migration!

What do you thinks about creating section in http://prosody.im/doc with all the information related to migrating from other jabber servers?

Thanks a lot and please keep up the great work!
=)
~ elf pavlik ~

Reply all
Reply to author
Forward
0 new messages