Storing Plugin Data Long Term


dorgan

Recommended Posts

What is the recommended approach for storing plugin data for plugins.  My plugin for instance stores data in /var/lib/vnstat, which from what I can tell is removed when the system is rebooted.  So I am thinking of adding an event handler to copy that data off somewhere and then copy it back before the service starts....

Link to comment

By and large, most plugins do not really store anything other than various settings.   If you need / want historical data to be stored, then the flash is the only "real" place to keep it.  But, continual writes to the flash are not recommended.  You could use an event to dump it to the flash at array stop.  

 

Look at /usr/local/sbin/emhttp_event

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.