The backup methods for Wazuh deployed in docker are actually the same as the ones used in Wazuh if you installed it directly on a VM or server.
You just need to make sure to use volumes to store all your Wazuh data. By default (and as commented here), the Wazuh docker deployment will use persistence on its data.
Currently, there are 2 ways of performing backups of Wazuh alerts:
In any case, to backup your Wazuh configurations you will also need to copy the content of next directories from the Wazuh manager:
- /var/ossec/active-response/ (Only in case you added a custom script here. Otherwise it is not needed).
- /var/ossec/api (Only in case you customized API settings. Normally it is not needed).
- /var/ossec/etc
- /var/ossec/integrations (Only in case you added a custom script here. Otherwise it is not needed).
- /var/ossec/queue
- /var/ossec/var/multigroups
- /var/ossec/wodles/ (Only in case you added a custom script here. Otherwise it is not needed).
Have in mind that since you're deploying with Docker, this directories are mounted to specific volumes for each (by default). You won't find this locations on the actual Docker host (but you would find them in case you accessed the Wazuh Manager container's CLI).
Also, in case you created some visualization/dashboard in Wazuh Dashboard, you can export them from
Wazuh Dashboard pie menu (top-left side of the screen) → Stack Management → Saved Objects.
I hope this helps! Let me know any doubt!