webif/var/mongoose/cgi-bin/backup/restore.jim
hummypkg 8dc232646b modularise schedule/backup restore. Fix bug in reset new
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1709 2a923420-c742-0410-a762-8d5b09965624
2013-10-26 11:05:47 +00:00

22 lines
274 B
Plaintext
Executable File

#!/mod/bin/jimsh
package require cgi
source /mod/webif/lib/setup
require rsv.class
set dir "/mod/var/backup"
httpheader
set file [file tail [cgi_get restore_file]]
if {$file == 0} {
puts "No filename supplied."
exit
}
set ffile "$dir/$file.rbk"
rsv restore $ffile