Skip to content

Restoring Mnesia Database #3895

Answered by badlop
Arokan13 asked this question in Questions
Sep 5, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

No errors, but on the very next test case that runs, it appears as tho the users and MUC rooms from the previous test are still there.

The ejabberd function that implements the restore API command explicitly keeps existing content, using the keep_tables option when calling mnesia.

Is there a way to purge ejabberd of data without restarting the container between each test case?

Yes. For cases like yours, you may want to use delete_mnesia before restoring a backup.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jdolan-chwy
Comment options

@badlop
Comment options

Answer selected by badlop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants