

01 will update the config tool you are using right now. Now just go through the first three options one by one. Start the openhabian menu by using sudo openhabian-configĪnd wait for it to finish updating. Now we are ready to actually update the system. While you are at it of course also copy the backup file created by the openhab-cli. Now you just need to copy those folders to some safe backup space. Sudo cp -arv /var/lib/grafana/grafana.db. create grafana backup folder and dump the database and settings Sudo influxd backup -database openhab_db influxDbBackup/db/ create influxdb backup folder and dump the openhab database and general settings into it That is not included in the backups, so I ran these commands to create one. I have also installed influxDB together with Grafana to save and visualize my data.

Sudo openhab-cli restore /var/lib/openhab2/backups/filename.zip Which places a file in /var/lib/openhab2/backups, which can then be restored using: Before you run it consider updating though. If you are actually using OpenHabian there is also a nice builtin backup method. Just make sure to use a private repository if your config files contain sensible data like passwords or names. Just push to GitHub or some other git repository. It allows you to keep track of all your changes (and quickly revert them) but it also makes backups super simple. Setting up git for config folder (usually “ /etc/openhab2/“) is an obvious choice if you do that. I am configuring OpenHab via config files as much as possible. The most time intensive but also safest way is to completely copy your SD card, make a copy of your VM or otherwise get a full copy of your system. Before you start any update you should make sure you have a backup.
