Do you want to migrate from your existing server to ejabberd?
ejabberd 2.1.0 will include support to import and export user data in PIEFXIS files (XML files with XEP-0227 format). This allows you to migrate accounts between ejabberd servers, or between other Jabber servers that support XEP-0227.
Check those pages for help, tutorials and tools: