2 Copyright 2017 Jo-Philipp Wich <jo@mein.io>
3 Licensed to the public under the Apache License 2.0.
8 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
10 <h2 name="content"><%:Netlink Bandwidth Monitor - Backup / Restore %></h2>
12 <fieldset class="cbi-section">
13 <legend><%:Restore Database Backup%></legend>
15 <form method="POST" action="<%=url("admin/nlbw/restore")%>" enctype="multipart/form-data">
16 <input type="hidden" name="token" value="<%=token%>" />
17 <input type="file" name="archive" accept="application/gzip,.gz" />
18 <input type="submit" value="<%:Restore%>" class="cbi-button cbi-button-apply" />
22 <div class="alert-message"><%=message%></div>
26 <legend><%:Download Database Backup%></legend>
28 <form method="GET" action="<%=url("admin/nlbw/download")%>">
29 <input type="submit" value="<%:Generate Backup%>" class="cbi-button cbi-button-link" />