micware
(Michiel)
January 29, 2017, 11:40am
1
Hi I run Openhab 2 to Build #600 (manual install) and want to install te final version of openhab 2.0
Do the instructions i read here still apply? Upgrade, Backup and Restore
# stop openhab instance (here: systemd service)
sudo systemctl stop openhab2.service
# backup current installation with settings
TIMESTAMP=`date +%Y%m%d_%H%M%S`;
sudo mv /opt/openhab2 /opt/openhab2-backup-$TIMESTAMP
# download new version (please replace URL)
cd /tmp
wget https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.0.0-SNAPSHOT.zip
sudo unzip openhab-2.0.0-SNAPSHOT.zip -d /opt/openhab2
rm openhab-2.0.0-SNAPSHOT.zip
# restore configuration and userdata
sudo cp -arv /opt/openhab2-backup-$TIMESTAMP/conf /opt/openhab2/
sudo cp -arv /opt/openhab2-backup-$TIMESTAMP/userdata /opt/openhab2/
# fix permissions
sudo chown -hR openhab:openhab /opt/openhab2
# restart openhab instance
sudo systemctl start openhab2.service
Is the link (URL) to the ZIP file on this page the correct source? https://bintray.com/openhab/mvn/openhab-distro/2.0.0
sihui
(SiHui)
January 29, 2017, 11:50am
2
No, that will install the newest snapshot, not the final version.
You need to download
To streamline the productivity of the JFrog Platform we will be sunsetting Bintray (including JCenter), GoCenter, and ChartCenter services on May 1st, 2021.
Est. reading time: 3 minutes
and because you are upgrading from a pretty old build, you won’t have the massive changes implemented (JsonDB storage instead of MapDB storage) yet:
General announcements from openHAB maintainers.
If you have configured your openHAB2 solely with text config files, there is a good chance that you are able to upgrade, but if you have configured it via GUI, e.g. PaperUI, you probably need to start from scratch …
micware
(Michiel)
January 29, 2017, 2:49pm
3
Thanks for you reply Sihui,
It looks like i have to start from the begining.
what are the advantages of using the manual installation over the apt-get
I now have the manual installation need and tidy under \opt\openhab2.
are there technically any advantages of NOT using apt-get?
sihui
(SiHui)
January 29, 2017, 3:01pm
4
The recommended install method is apt-get
http://docs.openhab.org/installation/linux.html#installation
You don’t have to care about permissions and automatic starting of openHAB is more easier accomplished.
micware
(Michiel)
February 5, 2017, 11:03am
5
I installed openhab with apt get and its working now.
Thx
topic can be closed.