2011-07-05 18:38:42 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
2012-05-21 20:23:41 +00:00
|
|
|
source /mod/webif/lib/setup
|
2011-07-05 18:38:42 +00:00
|
|
|
require altrow rsv.class
|
|
|
|
|
|
|
|
puts {
|
|
|
|
<script type=text/javascript src=/cgi-bin/backup/backup.js></script>
|
|
|
|
<h2>Backup/Restore</h2>
|
|
|
|
|
2011-07-08 20:39:57 +00:00
|
|
|
<div id=restore_warning class="hidden warningbox">
|
2013-04-03 22:42:15 +00:00
|
|
|
<div>
|
2011-07-08 20:39:57 +00:00
|
|
|
<center>
|
|
|
|
<b>!!!!!!!!!!!!!! PLEASE NOTE !!!!!!!!!!!!!!
|
|
|
|
<br><br>
|
|
|
|
After restoring the scheduled recordings you <b>MUST</b> restart the box using
|
2012-04-18 21:19:12 +00:00
|
|
|
the link at the top of the screen or via the remote control.
|
2013-04-03 22:42:15 +00:00
|
|
|
</div></div>
|
2011-07-08 20:39:57 +00:00
|
|
|
|
2011-07-05 18:38:42 +00:00
|
|
|
<div style="clear: both; float: left; width: 40%; border: 1px solid grey;
|
|
|
|
padding: 1em">
|
|
|
|
To create a backup of your current favourite channel configuration and
|
|
|
|
scheduled recordings, enter a name in the box below and click the button.
|
|
|
|
A suggested name has been entered for you.
|
|
|
|
|
|
|
|
<p>
|
|
|
|
}
|
|
|
|
|
|
|
|
puts "<input type=text size=30 maxlength=50 id=backup_name name=file
|
|
|
|
class=\"text ui-widget-content ui-corner-all\"
|
|
|
|
value=\"[clock format [clock seconds] -format "backup-%Y-%b-%d-%H:%M"]\">"
|
|
|
|
puts "<button id=backup_button>Create Backup</button>"
|
|
|
|
|
|
|
|
puts {
|
2011-07-05 22:59:34 +00:00
|
|
|
<br>
|
|
|
|
<div id=backup_working class=va style="display: none;">
|
|
|
|
<img class=va src=/img/loading.gif>
|
|
|
|
<font class=footnote>Backing up...</font>
|
|
|
|
</div>
|
2011-07-05 18:38:42 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id=backup_files_outer
|
|
|
|
style="float: left; width: 40%; border: 1px solid grey; margin-left: 1em;
|
|
|
|
padding: 0 1em 1em 1em">
|
|
|
|
<h3>Available Backups</h3>
|
|
|
|
<div id=backup_files style="padding: 0 0 0 2em">
|
|
|
|
<img src=/img/loading.gif>Retrieving list of backups...
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<button id=restore_button disabled>Restore Backup</button>
|
|
|
|
<button id=delete_button disabled>Delete Backup</button>
|
2012-09-21 20:56:53 +00:00
|
|
|
<button id=view_button disabled>View Backup</button>
|
2011-07-05 22:59:34 +00:00
|
|
|
<br>
|
|
|
|
<div id=restore_working class=va style="display: none;">
|
|
|
|
<img class=va src=/img/loading.gif>
|
|
|
|
<font class=footnote>Restoring...</font>
|
|
|
|
</div>
|
2011-07-05 18:38:42 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id=results class=pre
|
|
|
|
style="display: none; clear: both; float: left; padding: 1em;
|
|
|
|
margin-top: 1em; border: 1px solid grey; width: 70%">
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
|