Database backup gets failing RPi after SD-card crash
Posted: Wednesday 10 February 2016 20:15
Gentlemen,
About a year ago, I've started using Domoticz on a Raspberry Pi. One of my very first scripts was an automated daily domoticz.db backup (http://www.domoticz.com/wiki/Daily_back ... ternal_hdd) on my Synology NAS. I've made some images, but the last one was from May 2015. So when my SD-card crashed last week, I got started straight away:
- got me a proper SanDisk SD-card (better than my last 'homebrand' which crashed);
- put my 9 month old image on it;
- stopped domoticz from running by 'sudo service domoticz.sh stop';
- renamed the regular domoticz.db to domoticz._db
- got started with my database update by 'gunzipping' it in a separate directory;
- and.... got into trouble.
As soon as I started unzipping my domoticz.db.gz to the regular domoticz.db, even while in the separate directory, the pi began to disconnect from WinSCP and Putty, only to reconnect after 20 seconds. And disconnect again within a few seconds. And on and on and on.
No fix seems possible.
Which is getting me to the question: does anyone have an idea about how I can use my zipped domoticz.db.gz to restore my Domoticz to its fullblown usefullness?
Thanks in advance!
About a year ago, I've started using Domoticz on a Raspberry Pi. One of my very first scripts was an automated daily domoticz.db backup (http://www.domoticz.com/wiki/Daily_back ... ternal_hdd) on my Synology NAS. I've made some images, but the last one was from May 2015. So when my SD-card crashed last week, I got started straight away:
- got me a proper SanDisk SD-card (better than my last 'homebrand' which crashed);
- put my 9 month old image on it;
- stopped domoticz from running by 'sudo service domoticz.sh stop';
- renamed the regular domoticz.db to domoticz._db
- got started with my database update by 'gunzipping' it in a separate directory;
- and.... got into trouble.
As soon as I started unzipping my domoticz.db.gz to the regular domoticz.db, even while in the separate directory, the pi began to disconnect from WinSCP and Putty, only to reconnect after 20 seconds. And disconnect again within a few seconds. And on and on and on.
No fix seems possible.
Which is getting me to the question: does anyone have an idea about how I can use my zipped domoticz.db.gz to restore my Domoticz to its fullblown usefullness?
Thanks in advance!