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)?
How to recover settings
Moderators: leecollings, remb0
- 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
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,....
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
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).
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
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
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest