Have same issue, but only on the RPI_B, not on the RPI_3B of my 2 operational Raspberries&Domoticz.
Or is difference in hardware not relevant?
One consequence is that at least Backup-at-the-Setup, and the 1st, 3rd and 4th script from
Wiki for 'Backup to external HDD' is not running for the said RPI_B.
Obviously best to 'repair' operation with backupdatabase.php, but tired of searching, have practically solved the 'problem' of Backup-to-external-HDD in another way for both RPIs (and any RPI to come):
- on all PCs in my LAN I have sync-software running named
AllWay Sync for automated backup/copy to NAS(SYNDS), etc.
- have installed vsftpd on each Raspberry for sure&easy external transfer of files
- have programmed one AllWaySync-instance to read a daily copy of /home/pi/domoticz/domoticz.db from each Raspberry and to put these files in designated Backup-folders at my NAS. Is a 2-step approach, but effective, and due to 'pulling' not dependent on any function in the Raspberries other than ftp.
- (as fallback) have programmed an AllWaySync-instance on another PC to perform that action each week, writing to different folders at the destination drives, to have really parallel backup, not just refresh/overwrite. 'More of the same'.
- because those PCs are either in 24/7-operation or periodically used, the probabilty that automatic backup is made is very high, and now redundant.
AllWaySync in the destination folder retains a selected number of older file-versions, which implies plenty of 'safety-copies'.
With automatic clean-up if the number of copies is exceeeded.
- Restore at Domoticz' Setup of domoticz.db from the PC which is running the webbased control for the subject Raspberry&Domoticz, is by pointing to the backedup file at the NAS.
One small, but significant aspect when using an 'external partner' like AllWaySync for backup:
Attention needed that AllWaySync should
not be active when re-installing Domoticz at the Raspberry, because then you have the risk (before you notice) that the sync-software automatically overwrites the latest backup by the newly installed domoticz.db!
Before you restart AllWaySync, you must be sure to have restored in Domoticz the latest backup-version of domoticz.db!
Almost without programming (just setup) all required functions: should be safe enough ......
Now looking which other folders/files from the Raspberries are worth to be included in that procedure.