How do I transfer all openhab settings to another server?
I used OpenHabian installed on Raspberry Pi for a while and now I would like to switch to a bigger server where I installed Proxmox and Debian 12.
Can someone make a how to here regarding how to transfer all the settings from the Raspberry to the new server installed in Proxmox?
I want to strictly transfer the MQTT device settings.
For openHAB itself, use the openHAB CLI tool to create a full backup of openHAB:
sudo openhab-cli backup --full [path]
For the rest, you have to check the openHABian docs, I honestly don’t know.
Please note the difference between openHAB and openHABian — openHABian is what provides tools to install additional software besides openHAB.
For MQTT, openHABian uses Mosquitto, and for Linux systems it is very standard to store config on the /etc folder, so it should be enough to copy the /etc/mosquitto folder from the old to the new host after installing Mosquitto on the new host.
For openHAB configuration and persistence data from rrd4j and mapdb, see Florians advice, for other stuff, it depends…
mqtt devices: I guess you are talking about openHAB Things, these are part of the backup.
configuration of mosquitto: copy /etc/mosquitto/* to your new mosquitto host.
By the way: I’m using openHABian on top of a debian 12 LXC on top of Proxmox 8.1.4, following the manual setup
Any other configuration (zigbee2mqtt, knxd, …) and additional persistence such as InfluxDB has to be copied manually - see documentation of the services itself (or ask here… )
Please reserve the Tutorials & Examples category for posting your solutions, not for questions.
I’ve moved this to a more appropriate category.
Hello, When I opened this topic, I thought of you exactly @Udo_Hartmann .
I have used many of the guides posted by you here:).
I also installed OpenHabian over Debian 12 on Proxmox 8.1, but it’s quite a titanic job to return to the previous settings.
I had OpenHab installed on Truenas Scale and it seemed very simple to copy the config files there…
I’ll try to make a backup and see how to copy back the things file - I hope I don’t catch my ears here.
It would be very interesting to have a link similar to these that configures the virtual machine during installation for OpenHabian https://tteck.github.io/Proxmox/
But maybe Professor @mstormi will also help us with this
Well, it’s not that complex…
- create LXC with debian 12 template, at least 2GByte RAM and 2 or more cores. use unprivileged. setup a reasonable amount of diskspace. I tend to use additional datasets for openHAB data, but it’s not strictly necessary.
apt update && apt -y full-upgrade && apt -y install htop sudo git to get basic stuff
- get openhabian like described in the documentation (manual installation)
- setup openhabian.conf to correct values, that is:
- system_default_locale=“de_DE.UTF-8” // for germany
- osrelease=debian // as long as there is not yet an option for bookworm
- disable hotspot and zraminstall
- copy your backup from
openhab-cli backup to
- wait until openHABian did its job.
It works! Initially, Things did not appear either, but after a restart everything works
Thank you very much