Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update process #37

Open
exo1987 opened this issue Nov 20, 2017 · 9 comments
Open

Update process #37

exo1987 opened this issue Nov 20, 2017 · 9 comments

Comments

@exo1987
Copy link

exo1987 commented Nov 20, 2017

HI guys,

is it necessary for the upgrade/update process to remove the openHAB qnap app and also delete the usersdata folder before installing a new version? Is there no easier way?

Kind regards
Exo

@Andy1402
Copy link

I am not sure if there is an easier way. I always tried the safe way: Safe all configs, delete the old app and install the new qpgk. Thenafter I copied all configs into the fresh installation.

@exo1987
Copy link
Author

exo1987 commented Nov 28, 2017

HI Andy1402, thank you for your answer. Do you mean with all configs the config folder or other folders, too? I usually delete all folders after deinstallation and then copy just the config folder to the new installation. It take a long time to install all bindings and do the configuration thats why I was asking about an other way...

@Andy1402
Copy link

Andy1402 commented Nov 29, 2017

Hi exo1987.
I mean I copied everything in my conf folder. If you have sth. in you addon folder, save it, too. Then I deinstalled the app. During the deinstallation all files will be deleted. And then I installed the new version from the QPKG and restored the conf files, manually. Maybe there is an easier way, but I don't know if it really works. I never tried it.

The bindings are installed automatically in my case because of my addons.cfg. You can configure, that bindings are automatically installed. In my case:
binding = exec,fritzboxtr0641,http1,km1001,network,ntp,samsungtv,zwave
ui = basic,paper,habmin,classic,habpanel
persistence = mysql
action = mail,telegram
So I don't need to install them step by step manually...
Regards.
Andy

@exo1987
Copy link
Author

exo1987 commented Nov 30, 2017

HI Andy, thats a very good tip! I was able to find a file with the name addons.config (not .cfg) but it seems like it is the same you were talking about. This will safe a lot of time....

regards
Exo

@6r15u
Copy link
Collaborator

6r15u commented Jan 7, 2018

@Andy1402 did you backup userdata folder? oder the folders within that folder?
I'm quite new to openHAB, and did not configure much until now as I first wanted to get the setup straight.
Do you know what is necessary and what can be left out? I've seen that in userdata sometimes are configs which lead to issues when updating?

@Andy1402
Copy link

@6r15u no I did a backup from the folder "conf" only.

@thopiekar
Copy link
Member

@Andy1402 That is too less. Most of openHAB's settings are stored in a database, which is again stored in userdata. Therefore, if you only backup conf, then you only save your smarthomes' rules and other general settings. As a consequence you'll need readd all devices and configure them again. (in case you lost your settings)

@Andy1402
Copy link

Andy1402 commented Jan 21, 2018

@thopiekar you are right. But in my case it is enough. I'm using a MySQL DB for database. And yupp, I configure my Z-Wave-Stick manually first time and add every Z-Wave-Thing again. I'm not sure how to prevent this. In the past I read from problems, if you simply overwrite the userdata folder.

@thopiekar
Copy link
Member

Well, it is a tricky part. What you can do is making a backup of your working userdata directory and make an update, so you get the new directory. Then you need to copy all files from your backup to this one. Optionally if you are unlucky there will be old remains in the backup, which need to be removed.
Already did it like that and it saved half of the day of reconfiguring everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants