As long as you are aware that using RAID is NOT a replacement for backups, all is fine. You can put your weewx.sdb +/- "anywhere".

But if for whatsoever reason your database gets corrupted, the RAID (whichever number) won't be of any help. RAID is a concept for higher performance and for disk redundancy, not a backup. For such events like data corruption or database corruption you need a backup. Of course the backup can be made to another RAID system. 😉 And the backup be better regular with not too long intervals in between.

Amongst system administrators there is the (in-)famous saying: no backup - no pity.

The solution is better performance and redundancy against disk failure by RAID together with a proper backup concept of the database outside your operational RAID disks.

My database is on an industrial SLC microSD card on my Rpi4B (little risk to fail), and I'm using a five minute backup to an external disk (USB3, 2.5", 2 TB) which will be "condensed" into an hourly backup by some housekeeping tasks/jobs/scripts every 2-3 days.



Am 18.03.2022 um 19:05 schrieb vince:
Folks do that, sure.   You could get there with a symlink too if you wanted to not mess with weewx.conf

Years ago sqlite recommended not having the db remotely mounted, but I think there are old threads here suggesting weewx is pretty safe to do this setup on.

On Friday, March 18, 2022 at 10:49:47 AM UTC-7 Wayne wrote:

    Instead of running the weewx database my Raspberry Pi 4 microSD
    card I'd like to relocate it to a shared drive on a Synology NAS.
    This is mainly to take advantage of the data redundancy of the NAS.

    1.  Is this simply a matter of changing SQLITE_ROOT to point to
    the new location?
    2.  Any reason to not use a remote host in this manner?

    An alternate solution is to periodically backup the file weewx.sdb
    but I just prefer having the database on the RAID storage device
    in the first place.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3278acbc-d6ec-4d9d-bc01-702b0c6db14en%40googlegroups.com <https://groups.google.com/d/msgid/weewx-user/3278acbc-d6ec-4d9d-bc01-702b0c6db14en%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f76f8a67-b89a-298e-105c-a36c89b428a6%40gmail.com.

Reply via email to