Page 1 of 1
How to recover settings
Posted: Monday 12 September 2016 9:05
by vco1
The SD card in my Pi got corrupted due to a power interruption. I tried to recover, but the Pi still won't boot. I am still able to access all data on the card though (on another computer obviously).
Is there a way to somehow save my Domoticz settings?
So my plan is to re-install Domoticz, but transfer my settings from my current (corrputed) SD-card. Which files do I need to copy (if at all possible)?
Re: How to recover settings
Posted: Monday 12 September 2016 10:09
by Egregius
At least make a copy of the complete Domoticz folder (or even the complete /home/pi folder).
You should have than that before, backup, backup, backup,....
Re: How to recover settings
Posted: Monday 12 September 2016 10:40
by vco1
Thanks. I know I should have made a backup (or an image of the SD card).
Are all Domoticz settings stored somewhere in the home/pi folder? Or are there other places where Domoticz stores (user)data? I don't mind creating a new image, but I'm not looking forward to setting up my whole environment (even though it's not that big).
Re: How to recover settings
Posted: Monday 12 September 2016 11:47
by Sneezydevil
Domoticz stores almost everything in the domoticz.db file. Its located in /home/pi/domoticz so if you backup /home/pi/ like Egregius said, you should be pretty safe. If you added scripts you probably know were you saved them

.
Re: How to recover settings
Posted: Friday 16 September 2016 17:19
by vco1
I was unable to restore the database. Although I could copy the files from the SD card, it seemed domoticz.db was corrupt (I got the the message that sqlite couldn't open an encrypted database when I tried to open it directly with sqlite on the command line). Adding all deveices anew was relatively easy though. I'm almost there.
As for the scripts, I don't know where they are. At least not in the scripts directory. Could Lua scripts be in some other directory than scripts too?