how to backup ejabberd chat rooms?

I'm using ejabberd-16-01
I've backed up my ejabberd user accounts using this command
ejabberdctl export_piefxis /path/to/export/
but
when I restored last backup, chatrooms wasn't restored :(
so
how to backup chat rooms and restore it ?
I'm using ejabberd-16-01

Well, if you just want

Well, if you just want backups, you can simply copy the Mnesia spool files.

If your server is not too big, you can execute the backup command. Or the 'dump' command, which produces a text file that you can edit yourself, and then load it in the new server.

thanks for your answer but

thanks for your answer
but could u plz provide me with dump syntax to backup
and what to do when restoring or moving into a new server ?

To do it, in a console: $

To do it, in a console:
$ ejabberdctl dump /tmp/mydump.txt
There's also a page in ejabberd's WebAdmin

And similarly to recover it:
$ ejabberdctl load /tmp/mydump.txt

thanks a lot Mr badlop

thanks a lot Mr badlop :)

have you tried to cluster ejabberd before ?
when I tried to join the second server to the node, an error message appears
Error: {not_master, 'ejabberd@my_domain'}
do u have any idea ?

thanks again for your helpful reply

Syndicate content