Cloning OH3 from test server to production server

  • Platform information:
    • Hardware: VM
    • OS: Ubuntu 20.04 LTS
    • Java Runtime Environment: openjdk 11.0.9.1 2020-11-04
    • openHAB version: openHAB 3.0.0 Build #2061
  • Issue of the topic: Is it possible to clone a setup
  • Please post configurations (if applicable): –
    • Items configuration related to the issue –
    • Sitemap configuration related to the issue –
    • Rules code related to the issue –
    • Services configuration related to the issue –
  • If logs where generated please post these here using code fences: –

I started testing new OH3 on my test setup - a virtual Machine running Ubuntu. Now before I go into too much trouble setting up/importing my production setup here I’d like to know if it is afterwards possible to clone the setup to my production setup.

Raspberry-Pi4 - then updated to whatever RaspianOS.

Or is it currently advised to do the setup directly on e.g. a second SD-Card directly on Raspi?

Thanks.

Definitely. Cloning on box/VM level is unaware of the dependencies on HW and OS and thus a very very bad idea in this context.
Install from scratch and import your old config.
If you want to run on RasPi, use openHABian. No Ubuntu.

Hello @mstormi,

sorry, if I didn’t make it clear.
I don’t intend to clone the complete system, but only the OH config.

So the options in openhabian-config

  • Backup openHAB config
  • Restore an openHAB config
    are already working?

I just have never tested it across different platforms.