blob: 8a35f97ac916178942d74b8c8dddcd6f3ed6b4fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<%#
Copyright 2017 Jo-Philipp Wich <jo@mein.io>
Licensed to the public under the Apache License 2.0.
-%>
<%+header%>
<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%>
|