How to recover settings

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
vco1
Posts: 29
Joined: Monday 12 September 2016 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

How to recover settings

Post 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)?
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: How to recover settings

Post 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,....
vco1
Posts: 29
Joined: Monday 12 September 2016 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: How to recover settings

Post 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).
Sneezydevil
Posts: 111
Joined: Monday 18 January 2016 9:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to recover settings

Post 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 ;).
vco1
Posts: 29
Joined: Monday 12 September 2016 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: How to recover settings

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest