webif/var/mongoose/cgi-bin/backup/restore.jim

22 lines
274 B
Plaintext
Raw Normal View History

#!/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