openHAB: important commands

Live show openHAB logfile

tail -f /var/log/openhab/openhab.log

Backup openHAB. The backup file will be created at /var/lib/openhab/backups.

openhab-cli backup

Restore openHAB backup file

sudo systemctl stop openhab
openhab-cli restore /var/lib/openhab/backups/openhab-backup-23_03_26-19_38_25.zip
sudo systemctl start openhab

Install bindings manually to the following directory. They will be automatically enabled.

cd /usr/share/openhab/addons

Leave a Reply