Merging 2 instances

I guess this is a configuration question. :P
We are currently in the process of merging 2 VPSs into one.
One (domain2) is running ejabberd 2.0.1 and the other is running ejabberd 2.1.5(domain1).
We want to migrate from domain2 to domain1.
domain1 is using pam auth and domain2 is using internal auth.
Both are using the mnesia db right now.
The domain name issue obviously is just a matter of adding domain2 to the jabber config file so the server will host both (as I understand it).
The larger issue is getting the domain2 user rosters transfered over to the new server so when the users login there (the account logins would be the same as on the old instance) they don't have to rebuild their roster from scratch.

Is there a way to merge the old roster data into the database on the new server (I assume the user has to login to the new server with their user@domain2 login first so they will be added to the database?)

Secondarily, I'm considering migrating it to mysql once everything is up and running. Is that easy enough to do? System auth for the accounts then all the other data stored in mysql?

Hopefully this made sense.
Thanks!

Mark II

You can dump the mnesia

You can dump the mnesia database to a text file. Modify the roster elements in that text file, and then import the modified file in the new server.

techiem2 wrote:

Secondarily, I'm considering migrating it to mysql once everything is up and running. Is that easy enough to do? System auth for the accounts then all the other data stored in mysql?

Yes, you can export your Mnesia database to *.sql file and import it in a Mysql database.

Syndicate content