Backup and restore on a clean fresh installation

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
Patricen
Posts: 121
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

Backup and restore on a clean fresh installation

Post 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.
User avatar
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

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
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

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

Post 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
Rfxcom
Raspi 4
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest