Automatic backup of the database to my NAS Topic is solved

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
redfirebrooks
Posts: 41
Joined: Sunday 07 January 2018 15:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Automatic backup of the database to my NAS

Post 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 ?
Version: 2024.1
Build Hash: 5279c8261
Compile Date: 2024-01-01 12:59:22
dzVents Version: 3.1.8
Python Version: 3.9.2
Raspbian Bullseye
Raspberry3B+
RFLINK R48.4
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Automatic backup of the database to my NAS

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
redfirebrooks
Posts: 41
Joined: Sunday 07 January 2018 15:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Automatic backup of the database to my NAS

Post by redfirebrooks »

Thanks for you advice. I have a Qnap NAS. I will seriously consider this option.
Version: 2024.1
Build Hash: 5279c8261
Compile Date: 2024-01-01 12:59:22
dzVents Version: 3.1.8
Python Version: 3.9.2
Raspbian Bullseye
Raspberry3B+
RFLINK R48.4
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest