backup.htm 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  4. Licensed to the public under the Apache License 2.0.
  5. -%>
  6. <%+header%>
  7. <h2 name="content"><%:System%></h2>
  8. <h3><%:Backup / Restore%></h3>
  9. <p><%:Here you can backup and restore your configuration and - if possible - reset this device to the default settings.%></p>
  10. <br />
  11. <div>
  12. <ul>
  13. <li><a href="<%=REQUEST_URI%>?backup=kthxbye"><%:Create backup%></a></li>
  14. <% if reset_avail then -%>
  15. <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>
  16. <% end -%>
  17. </ul>
  18. </div>
  19. <br />
  20. <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
  21. <div class="left"><%:Backup Archive%>:</div>
  22. <div>
  23. <input type="file" size="30" name="archive" />
  24. </div>
  25. <div>
  26. <input type="submit" class="cbi-button cbi-input-apply" value="<%:Restore backup%>" />
  27. </div>
  28. </form>
  29. <%+footer%>