Planning to migrate my OpenHAB 2.5.6 installation to the latest OpenHAB 3 version, using docker (i.e. using QNAP Container Station). My OH 2.5.6 is working fine but recent side-effects make me believe that my installation might be kind of corrupted. So, instead of doing a migration, I’m considering a fresh installation of OpenHAB 3 and then primarily migrating the conf directory with all things, items, rules, sitemaps, services, persistence, transformations, etc.
My simple question: Will this work? Will OpenHAB 3 understand and use all my files in the conf directory? Or do I need to go through a “migration process” where those files will get transformed, etc. first?
Let me provide some more information:
As far I assessed, there is not too much configuration I did within the UI. Installing a list of bindings and transformations, some locale settings, and I think this is it (well, activating the persistence). I have all my Things and Items in the conf directories, also quite a lot of rules and everything else you configure there (http binding service, etc.).
So I believe I can quite easily replicate the few settings in the UI that I need to have, after a fresh OpenHAB 3 installation.
This is what I would do:
- Create a new persistence folder for the OH 3 docker container
- Copy over the OH2 “conf” directory as is to the corresponding OH 3 persistence folder
- Create the OH3 container and start it up, with the correct persistence folder mappings
- Go through the basic OH3 installation steps
- Re-apply the config in the UI as necessary (installing the required bindings, transformations, some locale settings, activating the InfluxDB persistence)
- With all Things, Items, Rules, etc. already being available in the conf folder, I hope OH3 finds them and knows what to do with it
- And as of that moment my OH3 installation works with all bindings happily ever after
Does this work? Any recommendations?