("Long time listener, first time caller")

vince wrote:

On Wednesday, July 24, 2019 at 6:55:42 AM UTC-7, James Muirhead wrote

As the web server data is written to the SD every 5 minutes, I felt it
would be appropriate to create a RAM disc for it. Should, in theory,
improve lifespan of the SD card.
[...]

One thing you might think about is stashing your NOAA files to disk
periodically (couple times a day) and restoring them, as they take a long
time to regenerate as you get more and more data.  The other stuff will
regenerate quickly on firstboot of course.

Like many, I stumbled onto the tmpfs ram drive solution a while ago.

Killing three birds with one stone ... I have an init script
(attached) that:

  o  Backs up the web directory on shutdown or when called with
     "sync" or "reload"
  o  Restores the web directory on startup

Cron entry runs the "sync" nightly, the other two modes are self
explanatory.

R

People using systemd are on their own
--
R A Lichtensteiger

        Power corrupts. Absolute power corrupts absolutely. But it rocks
        absolutely, too.

--
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/20190729163747.GA10844%40mta.tifosi.com.

Reply via email to