{"id":91,"date":"2023-04-05T10:16:40","date_gmt":"2023-04-05T08:16:40","guid":{"rendered":"https:\/\/gilbert.busana.lu\/?p=91"},"modified":"2023-04-05T17:18:06","modified_gmt":"2023-04-05T15:18:06","slug":"openhab-important-commands","status":"publish","type":"post","link":"https:\/\/www.homeserver.lu\/?p=91","title":{"rendered":"openHAB: important commands"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Live show openHAB logfile <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>tail -f \/var\/log\/openhab\/openhab.log<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Backup openHAB. The backup file will be created at <em>\/var\/lib\/openhab\/backups<\/em>.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>openhab-cli backup<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Restore openHAB backup file<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo systemctl stop openhab\nopenhab-cli restore \/var\/lib\/openhab\/backups\/openhab-backup-23_03_26-19_38_25.zip\nsudo systemctl start openhab<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Install bindings manually to the following directory. They will be automatically enabled.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cd \/usr\/share\/openhab\/addons<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Live show openHAB logfile Backup openHAB. The backup file will be created at \/var\/lib\/openhab\/backups. Restore openHAB backup file Install bindings manually to the following directory. They will be automatically enabled.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-openhab"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=91"}],"version-history":[{"count":5,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/91\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}