Modify ejabberd database

Hi people,

I have a ejabberd database containing ten accounts on my OLD server (name: HOBBES). Recently, we have move our ejabberd server to another server (name: UBUNTU) and I want to restore my database to keep my accounts and theirs relations. But when I restore my database, the accounts are on HOBBES... :/

Is it a way to restore accounts with my NEW server ? Or to modify the database backup to change the server info ?

Thanks for your help,
Fabien

How to

F2000 wrote:

Or to modify the database backup to change the server info ?

Yes. You have a very small database, so it's fast to obtain text files of your current database. Howto:

  1. Export the accounts to XML file, or dump the internal Mnesia tables to text file.
  2. Modify the file with a text editor.
  3. Import the modified XML file, or load the modified text file.

You can do steps 1 and 3 using the ejabberd WebAdmin, or the ejabberdctl shell program.

OK thanks.

OK thanks.

Syndicate content