April 21, 20206 yr 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....
April 21, 20206 yr 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.
April 21, 20206 yr 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
Archived
This topic is now archived and is closed to further replies.