Dump just one vhost

Hey,

I want to move just one vhost to another server. Is there a function to dump just the stuff of that vhost?

And can I "merge" that vhost stuff then with "ejabberdctl load" into an existing server?

Ciao Ephraim

You can dump whole database to text file; edit; then load

ephraim wrote:

I want to move just one vhost to another server. Is there a function to dump just the stuff of that vhost?

Not possible to dump only a vhost.

But you can dump the whole Mnesia database to text file. Notice this may take some time and RAM if you have hundreds of users and roster items. Then edit the text file to remove the content that you don't want.

ephraim wrote:

And can I "merge" that vhost stuff then with "ejabberdctl load" into an existing server?

And then load that text file (you filtered it) in the other ejabberd server.

I tried to filter such a

I tried to filter such a dump. But man if you have 4 vhosts running all filled up with users, filtering such a file is no fun.

I would really like to have such a dump via
./ejabberdctl vhost "myvhostdomain" dump

that would be a nice one feature.

But anyway thanks for your answer. So I know that I can merge the filtered stuff into an running server.

Ciao Ephraim

Syndicate content