Hello,
For some reason, I decided to burn a new SD card with a clean Raspbian installation on my rpi, reinstalled domoticz (the easy way), and this works like a charm, but without my previous data.
I updated domoticz to the same version as my previous system and I'm trying to get back my data, but...
As soon as I do replace domoticz.db, the system decides staying offline. Are there other files I need to copy to the new card so that it works?
I'm stuck.
Backup and restore on a clean fresh installation
Moderators: leecollings, remb0
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Backup and restore on a clean fresh installation
Assuming you stop domoticz before replacing domoticz.db with the old copy, a first step in the problem investigation would be to start domoticz from the command line interface or with log active and share what you see.Patricen wrote: Saturday 29 February 2020 2:06 I updated domoticz to the same version as my previous system and I'm trying to get back my data, but...
As soon as I do replace domoticz.db, the system decides staying offline. Are there other files I need to copy to the new card so that it works?
I'm stuck.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
Patricen
- Posts: 121
- Joined: Tuesday 06 February 2018 18:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta rel
- Contact:
Re: Backup and restore on a clean fresh installation
That's pretty weird, it looks unstable
After a sudo service domoticz.sh restart it works, but that is not very convenient after a power losspi@domoticz:~ $ sudo service domoticz.sh status ● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Sat 2020-02-29 10:06:07 CET; 2min 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 410 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SU
févr. 29 10:06:05 domoticz systemd[1]: Starting LSB: Home Automation System...
févr. 29 10:06:07 domoticz domoticz.sh[410]: 2020-02-29 10:06:07.142 Status: Do
févr. 29 10:06:07 domoticz domoticz.sh[410]: 2020-02-29 10:06:07.142 Status: Bu
févr. 29 10:06:07 domoticz domoticz.sh[410]: 2020-02-29 10:06:07.143 Status: St
févr. 29 10:06:07 domoticz domoticz.sh[410]: domoticz: Domoticz is starting up..
févr. 29 10:06:07 domoticz domoticz[429]: Domoticz is starting up....
févr. 29 10:06:07 domoticz domoticz[466]: Domoticz running...
févr. 29 10:06:07 domoticz systemd[1]: Started LSB: Home Automation System.
lines 1-14/14 (END)
-
jkimmel
- Posts: 129
- Joined: Monday 25 November 2013 17:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Mallorca
- Contact:
Re: Backup and restore on a clean fresh installation
I think the better approach would be to use the backup/restore function of Domoticz (Settings) instead of copying the domoticz.dbPatricen wrote: Saturday 29 February 2020 2:06 Hello,
For some reason, I decided to burn a new SD card with a clean Raspbian installation on my rpi, reinstalled domoticz (the easy way), and this works like a charm, but without my previous data.
I updated domoticz to the same version as my previous system and I'm trying to get back my data, but...
As soon as I do replace domoticz.db, the system decides staying offline. Are there other files I need to copy to the new card so that it works?
I'm stuck.
Rfxcom
Raspi 4
Raspi 4
Who is online
Users browsing this forum: No registered users and 1 guest