Thanks for your input, Peter. I'll confess a somewhat `gung ho` attitude to backups but I've found (since yesterday) I can copy the database (<>20MB) to my `weewxlogs` nfs mount in much less than 5 seconds. I'll setup a cron job to put this in place and run some tests with `integrity_check` and see how it goes. I've also freed up a Pi2 from another application so I'll also be testing database (and whole weewx installation) on an nfs mount using the simulator - just for the craic.
Dave, G1OGY On Fri, 1 Nov 2019 at 12:04, p q <[email protected]> wrote: > > I hear people talk about RPi SD card issues, but I've been running for 4+ > years without a problem. I should count myself lucky I guess. > > Anyway, I have a chron job that momentarily stops weewx, makes a copy of the > database, restarts it, and then copies the db to my google drive. Every month > or so I go in and clean out the old ones, keeping the most recent and the one > from the first of the month, just in case. If I ever lose the db, I'll have a > backup. > > The chron job runs a script based on montionuploader here: > http://jeremyblythe.blogspot.com/2015/06/motion-google-drive-uploader-for-oauth.html > > It's not what you're asking for, but it's another way to accomplish the same > thing. > > > > On Thu, Oct 31, 2019 at 6:09 AM Dave, G1OGY <[email protected]> wrote: >> >> I have suffered database corruption (on a RPi - Yes...) >> I am by no means a `climate researcher` - I just like to know what the >> weather >> is doing/has been doing... >> >> So. Two questions: >> >> 1) Given I upload all data to my website (where this morning's web pages >> remain >> - with all data accessible) will the NOAA files be overwritten if I were to: >> a) reinstall the Pi with `buster` >> b) install the new version of weewx >> c) copy the NOAA .txt files to the appropriate place... >> and carry on? >> >> 2) I have my weewx logs on a nfs mount (to reduce SD card writes, primarily; >> though >> I log only errors). >> Given the history of broad RPi database corruption; has anyone has success >> with >> hosting the database (or even the whole weewx installation) on an nfs mount? >> >> This is a Pi3 with Gigabit (OK : =< 150Mb/sec) Ethernet connectivity. >> >> TIA for any feedback. >> >> -D >> >> -- >> 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/a74e3bc2-7346-445f-b0f5-eee9e7ecdc2d%40googlegroups.com. > > > > -- > Peter Quinn > (415)794-2264 > > -- > You received this message because you are subscribed to a topic in the Google > Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/L5RIIG9EE_Y/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/CAA1SM23sjDyqwbpAz1npzjxzCT-%3DBaaNb7AF8S8f3y0OTcuVLQ%40mail.gmail.com. -- 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/CAKOSXUHenSJhLipE5EAhQtDwhD%3D9Ggnny3uJmQKRWEpF1qzF-A%40mail.gmail.com.
