I’m a bit lost with all the different posts around how to upgrade to the latest version of OH2 on a Synology DiskStation.
I really appreciate if someone can explain the steps to take to complete this task ?
Here is my current setup:
Synology DS216+
OH version 2.0.0.010
Bindings installed via PaperUI (Astro, AVM, TR064, Homematic, HTTP, Hue, Network, NTP, no ZWAVE Binding)
Items installed via PaperUI (Item linking = Simple Mode)
conf and userdata are located in /volume1/public/openHAB
public folder is backed up on my PC, with HyperBackup daily and using ./backup from CLI
What is the best method to do the upgrade and restore the existing configuration without trouble ?
Via Package Center in DS ?
potential steps to take via Package Center:
overwrite/replace public folder from installation with data from backup
RUN OH via package center
Would that work ? Am I missing something ? Is something wrongly stated ?
Or is it better to perform the upgrade via ssh to the DS and perform commands via the command line ?
If this is the better approach, pls let me know the steps to perform.
I want to be on the safe side when performing the upgrade.
Not necessaril full folders, but the ones most important to save/restore are:
jsondb (this is all the paperui stuff as i understand it)
config/org/openhab/habpanel.config (if you’re using habpanel).
Most of the rest of the stuff in config/org/openhab will be rebuilt.
Check your conf/services/addons.cfg
If it looks like this
Thanks Scott,Just one more question on the sequence of events during installation to be clear:
Once the new OH SPK is installed on the DS via package center, I prevent the application from starting right away.
Then I ssh into the server and replace the default files from the install with the ones from my backup including the addons.cfg as you suggested.
Once that’s complete I start the updated OH application for the first time and it will pickup the conf and userdata including loading e.g. the bindings acc to addons.cfg (there are no manually installed bindings outside of PaperUI), I’m assuming it will load the latest version of the bindings, pls confirm …
Is this a correct sequence of steps to get it done ?
@madi Lots of permissions changes too. Reinstalling means it removes the openhab user which resets all the permissions. Try to fix them using the ui instead of the cli. There’s some difference in the way the two work and the ui is more correct. Next time @me I’m missing these notifications