dorgan Posted April 21, 2020 Share Posted April 21, 2020 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.... Quote Link to comment
trurl Posted April 21, 2020 Share Posted April 21, 2020 About the only thing you can be sure of is the user has a flash drive. But writing to flash is generally discouraged to prolong life. Maybe you could make it configurable. Quote Link to comment
Squid Posted April 21, 2020 Share Posted April 21, 2020 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 Quote Link to comment
dorgan Posted April 21, 2020 Author Share Posted April 21, 2020 Sounding like then i should not pursue this.... OK Quote Link to comment
Recommended Posts
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.