backup.htm 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <%#
  2. LuCI - Lua Configuration Interface
  3. Copyright 2008 Steven Barth <steven@midlink.org>
  4. Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. $Id$
  10. -%>
  11. <%+header%>
  12. <h2><a id="content" name="content"><%:System%></a></h2>
  13. <h3><%:Backup / Restore%></h3>
  14. <p><%:Here you can backup and restore your configuration and - if possible - reset this device to the default settings.%></p>
  15. <br />
  16. <div>
  17. <ul>
  18. <li><a href="<%=REQUEST_URI%>?backup=kthxbye"><%:Create backup%></a></li>
  19. <% if reset_avail then -%>
  20. <li><a href="<%=REQUEST_URI%>?reset=yarly" onclick="return confirm('<%:Proceed reverting all settings and resetting to firmware defaults?%>')"><%:Reset this device to defaults%></a></li>
  21. <% end -%>
  22. </ul>
  23. </div>
  24. <br />
  25. <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
  26. <div class="left"><%:Backup Archive%>:</div>
  27. <div>
  28. <input type="file" size="30" name="archive" />
  29. </div>
  30. <div>
  31. <input type="submit" class="cbi-button cbi-input-apply" value="<%:Restore backup%>" />
  32. </div>
  33. </form>
  34. <%+footer%>