Zigbee2mqtt migration | standalone to Home Assistant OS

I have the MQTT broker (Mosquitto) and Zigbee2MQTT running on a different server (Raspbarry pi) than Home Assistant.

I want to run zigbee2MQTT and MQTT broker on the same server (intel NUC) as Home Asisstant

I installed Mosquitto broker and Zigbee2MQTT add-on on home assistant OS.

Now I can transfer my zigbee stick to the server running Home Asisstant OS and re-pair my 40+ zigbee devices.

But according to the FAQ | Zigbee2MQTT

Should I be able to move the “Data” folder to the new environment (my Home Asisstant OS server) and edit the configuration.yaml to the new location.

I now have the “\data” folder locally on the Home Assistant server but I don’t know how to get this data to the correct location within the zigbee2MQTT docker container. And what is the correct location!?

I’ve googled a lot but haven’t found a solution yet.
And a lot has been written on this topic, but I can’t find anything about: from standalone to Home Assistant OS migration. Lots of other combinations i have seen.

Is this possible? or is there no other option than to pair all my (+40) zigbee devices again!

Any help and explanation is appreciated.

Don‘t use HA OS. Move the Zigbee dongle and the Mosquitto / Z2M containers with their data-directories next to the HA container on the NUC.

You can use docker compose to orchestrate.

Thank you for your response and advice.

in the current situation zigbee2mqtt and mosquitto do not run in a docker container but as a service in the OS
transferring docker containerner is therefore not an option.

and is it true that if I put a docker container next to HA myself, I will miss the update function that the add-ons within the UI of home assistant do have?

I was hoping there was an option to inject the data from my current install into the new home assistant installed add-on for zigbee2mqtt!

I‘ve misread your initial post and was thinking that you do not run HA OS currently. But since you do, my advice is not applicable.

have you found a solution? I am myself looking to run mosquitto and zigbe2mqtt and would love some advice.

this is an old post but I am looking to do the same thing (migrate from zigbee2mqtt on standalone raspberry PI running on debian over to HAOS) - I really did not want to re-pair all my devices.

Install the samba add-on. Copy the contents of the data directory to config/zigbee2mqtt

thanks for the input. that helps, I was probably making it more complicated. do they both have to be on the same zigbee2mqtt rev? the standalone install is at 1.32.1 and the ver in HA is 1.35.3-1. Also looks like there will be a few differences in the z2mqtt configuraiton.yaml file between the standalone install and the HA install. will everything else in the ./data directory be the same?