Can i copy all roster + SRG data of a Virtual Host to another in the same node??

Hi,
i have two virtual hosts, www.domain.com (the active domain) and dev.domain.com (the development one).
The two hosts are sharing the same Mnesia DB in the same ejabberd node v2.1.5 on Debian.

I need a way to copy all data (roster + SRG) from www.domain.com to dev.domain.com, better without shutting down the whole ejabberd server.

-Should i create 2 ejabberd nodes, 1 for www and 1 for dev, then dump/load DB?
-Can i use the PIEFXIS (XEP-0227) method? Does it exports shared roster groups too?

Thanks

I done it in my way.... First

I done it in my way....

First i updated ejabberd to 2.1.10 (Debian SID package) and compiled the latest exmpp library.

I used the PIEFXIS method for copy the rosters and I copied manually the SRG from vhost A to vhost B.

I notice a BUG:
when i export the rosters with "export_piefxis_host", in the roster list of a user there are also all other users that he can "see" with a SRG...

i just removed them manually.

Syndicate content