diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2023-11-04 12:44:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 12:44:13 +0200 |
commit | 574caf9039f6762e23687fb0bab7c3e0f72f7fa8 (patch) | |
tree | 6ee5137e897a330c112cf500af50b4cb519bc329 /applications/luci-app-statistics/htdocs | |
parent | 9cc3ed702c5e64b73327547f172b4b46d6c036c5 (diff) | |
parent | ad98af3a2be6c87b1f36cec05c8c3529831b7787 (diff) |
Merge pull request #6646 from jtkohl/luci-app-statistics-backups
luci-app-statistics: Add backup/restore for RRD statistics
Diffstat (limited to 'applications/luci-app-statistics/htdocs')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js index e971e2c6c4..7e2704a2c3 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js @@ -16,6 +16,11 @@ return baseclass.extend({ o.default = '/tmp/rrd'; o.depends('enable', '1'); + o = s.option(form.Flag, 'backup', _('Backup RRD statistics'), + _('Backup and restore RRD statistics to/from non-volatile storage around shutdown, reboot, and/or sysupgrade')); + o.default = '0'; + o.depends('enable', '1'); + o = s.option(form.Value, 'StepSize', _('RRD step interval'), _('Seconds')); o.placeholder = '30'; o.datatype = 'uinteger'; |