External persistence

Hello

We are using the HiveMQ Community Edition docker image (+ our custom auth extension) on our Kubernetes cluster.

What is the preferable way to back up sessions, subscriptions, retained messages, so the HiveMQ instance can be crashed/restarted, redeployed, and upgraded without losing data?

Best regards

Hello Amrerm,

HiveMQ always persists its data, by default it is $HIVEMQ_HOME/data directory.
You can change the folder by following the user guide.

I hope this helps,
Kind regards,
Dasha from HiveMQ Team