Move from HAOS - how to backup

Well the title says it all. Planning to move away from HAOS to a plain docker. What will be the correct backup strategy?

Also have zigbee2mqtt and Z-wave JS. Or better of start from scratch?