| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/fsdump/ |
Upload File : |
#!/usr/bin/perl
# newtape.cgi
# Indicate that a new tape is loaded for a backup job
require './fsdump-lib.pl';
&ReadParse();
&error_setup($text{'newtape_err'});
&foreign_require("proc", "proc-lib.pl");
@procs = &proc::list_processes();
@running = &running_dumps(\@procs);
($job) = grep { $_->{'id'} eq $in{'id'} &&
$_->{'pid'} == $in{'pid'} } @running;
$job || &error($text{'newtape_egone'});
&can_edit_dir($job) || &error($text{'newtape_ecannot'});
$job->{'status'}->{'status'} eq 'tape' || &error($text{'newtape_estatus'});
kill('HUP', $job->{'status'}->{'tapepid'});
&redirect("");