system("rm /tmp/include");
}
elsif ($ARGV[0] eq 'restore') {
- system("tar -xvz --preserve -f /tmp/restore.ipf");
+ system("cd / && tar -xvz --preserve -f /tmp/restore.ipf");
}
elsif ($ARGV[0] eq 'cli') {
system("tar -cvzf /var/ipfire/backup/$Jahr$Monat$Monatstag-$Stunden:$Minuten-$ARGV[1].ipf --files-from='$ARGV[2]' --exclude-from='$ARGV[3]'");
print UPLOADFILE;
}
close UPLOADFILE;
- system("/usr/local/bin/backupctrl restore");
+ system("/usr/local/bin/backupctrl restore >/dev/null");
}
&Header::showhttpheaders();