<feed xmlns='http://www.w3.org/2005/Atom'>
<title>luci/applications/luci-app-statistics/root/lib, branch master</title>
<subtitle>Lua Configuration Interface (mirror)</subtitle>
<id>https://git.openwrt.org/project/luci/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/luci/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/'/>
<updated>2023-10-29T23:48:38Z</updated>
<entry>
<title>luci-app-statistics: Add backup/restore for RRD statistics</title>
<updated>2023-10-29T23:48:38Z</updated>
<author>
<name>John Kohl</name>
</author>
<published>2023-10-25T02:12:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=ad98af3a2be6c87b1f36cec05c8c3529831b7787'/>
<id>urn:sha1:ad98af3a2be6c87b1f36cec05c8c3529831b7787</id>
<content type='text'>
Add a backup/restore capability for rrd data storage in
luci_statistics.  The data storage is typically in /tmp and does not
survive reboot or sysupgrade.  This adds an option for the
administrator to configure the RRD plugin, so that the RRD data are
are preserved with a backup copy in the overlay file system.

This works for shutdown/reboot, sysupgrade (backup config files,
restore config files, and true sysupgrade).

Also fix a bug where starting luci_statistics for the first time would
not get a restart a running collectd: during install of the package
when it is not included in the base flashed image, collectd might be
started when it got installed/configured before this package gets
installed/configured.  So we need to check if it's running, and
restart it to use the luci_statistics configuration.

Signed-off-by: John Kohl &lt;jtk.git@bostonpog.org&gt;
</content>
</entry>
</feed>
