Page 1 of 1
Backup and restore on a clean fresh installation
Posted: Saturday 29 February 2020 2:06
by Patricen
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.
Re: Backup and restore on a clean fresh installation
Posted: Saturday 29 February 2020 8:30
by waaren
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.
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.
Re: Backup and restore on a clean fresh installation
Posted: Saturday 29 February 2020 10:14
by Patricen
That's pretty weird, it looks unstable
pi@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)
After a sudo service domoticz.sh restart it works, but that is not very convenient after a power loss
Re: Backup and restore on a clean fresh installation
Posted: Saturday 29 February 2020 10:49
by jkimmel
Patricen 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.
I think the better approach would be to use the backup/restore function of Domoticz (Settings) instead of copying the domoticz.db