BACKUP
cd /var/lib/openhab2/backups/sudo openhab-cli backup
пример на backup файл openhab2-backup-20_05_04-20_51_25.zip
RESTORE
sudo /bin/systemctl stop openhab2.servicecd /var/lib/openhab2/backups/
sudo openhab-cli restore openhab2-backup-20_05_04-20_51_25.zip
sudo /bin/systemctl start openhab2.service
//sudo openhab-cli start
"Please stand by while UIs are being installed. This can take several minutes."
sudo systemctl status openhab2.service
backup файл от Ubuntu Server 16.04 възстанови openHAB2.5.5 в Ubuntu Server 20.04 на 100%. BasicUI и PaperUI бяха огледални копия в двете системи. MySQL и MQTT Mosquitto са извън обсега на backup файла, което налага инсталацията им от начало в Ubuntu Server 20.04.
UPGRADE
Текуща версия 2.5.5. update предлага обновяване на 2.5.6apt list --upgradable
Listing... Done openhab2/stable,stable 2.5.6-1 all [upgradable from: 2.5.5-1] openhab2-addons/stable,stable 2.5.6-1 all [upgradable from: 2.5.5-1]sudo /bin/systemctl stop openhab2.service
sudo apt-get upgrade
The following packages will be upgraded: openhab2 openhab2-addons 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 279 MB of archives. After this operation, 577 kB of additional disk space will be used. .... [openHAB] openHAB was not running so will not start after upgrade. [openHAB] Please use the command: sudo /bin/systemctl start openhab2.servicesudo /bin/systemctl start openhab2.service
"Please stand by while UIs are being installed. This can take several minutes."
sudo reboot
ROLLBACK
OH2.5.6 се оказа катастрофа. Не призна иконите в items-файлове. Отказа трансформации от JavaScript. Логично решение откат назад към OH2.5.5.apt-cache showpkg openhab2 // варианти версии
sudo /bin/systemctl stop openhab2.service
sudo apt-get -y --allow-downgrades -y install openhab2=2.5.5-1
sudo openhab-cli info
sudo openhab-cli clean-cache
sudo /bin/systemctl start openhab2.service
"Please stand by while UIs are being installed. This can take several minutes."
// изключване на хранилището #
cd /etc/apt/sources.list.d
sudo nano openhab2.list.save
sudo nano openhab2.list
sudo reboot
openHAB 2.5.5 възстановен.
до нови срещи ^.^
0 Response to "BACKUP-RESTORE-UPGRADE-ROLLBACK OH2.5.X"
Публикуване на коментар