Page 1 of 1

Automatic backup of the database to my NAS

Posted: Sunday 22 July 2018 19:33
by redfirebrooks
Hi

to save the lifespan of my SD card I'd like to to backup the domoticz database on my NAS.
I've created a symbolic link of the backups folder on py RPI pointing to my NAS.

backups -> /mnt/myBACKUPS/db_backup/

When I activate automatic backup in domoticz the folders structure monthly/daily/hourly is created on my NAS, the first backup file is also created but then is stuck at 0 byte and my domoticz doesn't not respond anymore.

My first thought was a permission issue but folders ans files are created.

Could someone help me ?

Re: Automatic backup of the database to my NAS

Posted: Sunday 22 July 2018 20:26
by waaren
redfirebrooks wrote: Sunday 22 July 2018 19:33 to save the lifespan of my SD card I'd like to to backup the domoticz database on my NAS.
...
I cannot help you directly with an answer on this question but have you considered using Berryboot ?
I have 3 PI systems, using Berryboot, connected to my Synology NAS iSCSI LUN's. Not sure if it can also be used on other NAS systems the same way but it is certainly worth a bit of Googling to find out if you own a NAS system of another brand.
Using Berryboot you don't have to write anything to the SD card after installing it and as a bonus you can create snapshots on your NAS without any downtime or performance hits of your complete PI system.

Re: Automatic backup of the database to my NAS

Posted: Sunday 22 July 2018 23:44
by redfirebrooks
Thanks for you advice. I have a Qnap NAS. I will seriously consider this option.