summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-nlbwmon/luasrc/view/nlbw/backup.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-07-28 15:57:44 +0200
committerJo-Philipp Wich <jo@mein.io>2017-07-28 16:26:42 +0200
commit0fe93fc3a3c9402a5d0af4415ed140df20f14953 (patch)
tree0ee17eefdec9efc455ccb896f171f1bc73cc3a25 /applications/luci-app-nlbwmon/luasrc/view/nlbw/backup.htm
parentee6110b3ac9433484045b61604a86f9917d8f279 (diff)
luci-app-nlbwmon: new package
This commit introduces luci-app-nlbwmon, a frontend for nlbwmon, the lightweight NetLink BandWidth Montor. The nlbwmon daemon gathers per-host traffic statistics by querying netlink accounting data. Due to this approach, the executable is very small and does not rely on libpcap and CPU intensive raw sockets to monitor traffic. Depends on PR https://github.com/openwrt/packages/pull/4646 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-nlbwmon/luasrc/view/nlbw/backup.htm')
-rw-r--r--applications/luci-app-nlbwmon/luasrc/view/nlbw/backup.htm34
1 files changed, 34 insertions, 0 deletions
diff --git a/applications/luci-app-nlbwmon/luasrc/view/nlbw/backup.htm b/applications/luci-app-nlbwmon/luasrc/view/nlbw/backup.htm
new file mode 100644
index 0000000000..ea2e0f05cf
--- /dev/null
+++ b/applications/luci-app-nlbwmon/luasrc/view/nlbw/backup.htm
@@ -0,0 +1,34 @@
+<%#
+ Copyright 2017 Jo-Philipp Wich <jo@mein.io>
+ Licensed to the public under the Apache License 2.0.
+-%>
+
+<%+header%>
+
+<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
+
+<h2 name="content"><%:Netlink Bandwidth Monitor - Backup / Restore %></h2>
+
+<fieldset class="cbi-section">
+ <legend><%:Restore Database Backup%></legend>
+ <p>
+ <form method="POST" action="<%=url("admin/nlbw/restore")%>" enctype="multipart/form-data">
+ <input type="hidden" name="token" value="<%=token%>" />
+ <input type="file" name="archive" accept="application/gzip,.gz" />
+ <input type="submit" value="<%:Restore%>" class="cbi-button cbi-button-apply" />
+ </form>
+
+ <% if message then %>
+ <div class="alert-message"><%=message%></div>
+ <% end %>
+ </p>
+
+ <legend><%:Download Database Backup%></legend>
+ <p>
+ <form method="GET" action="<%=url("admin/nlbw/download")%>">
+ <input type="submit" value="<%:Generate Backup%>" class="cbi-button cbi-button-link" />
+ </form>
+ </p>
+</fieldset>
+
+<%+footer%>