Hello,
I had 2 ejabberd servers running at two different machines, serving two different domains (domain1.tld
and domain2.tld
).
Now, one of the hosts doesn't exist (domain1.tld
). But I have a database backup.
So my question is - how do I restore users and rosters from domain1.tld
as a virtual host on the server serving domain2.tld
?
If that is not possible/non-trivial, how do i export that info from the mnesia backup file into some text format?
Thanks.
You can try to import, load,
You can try to import, load, or restore the database content from one ejabberd node into another ejabberd node. For that use the ejabberd webadmin -> Nodes -> your node -> database; or use ejabberdctl restore/load.
I think Mnesia will mix/merge the contents of the existing and the imported table, not deleting any content. In any case, you better make also a backup of the running ejabberd before importing :)