mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
Backup funktioniert jetzt auch via Webinterface
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@768 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -39,7 +39,7 @@ elsif ($ARGV[0] eq 'exclude') {
|
||||
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]'");
|
||||
|
||||
@@ -58,7 +58,7 @@ elsif ( $cgiparams{'ACTION'} eq "restore" )
|
||||
print UPLOADFILE;
|
||||
}
|
||||
close UPLOADFILE;
|
||||
system("/usr/local/bin/backupctrl restore");
|
||||
system("/usr/local/bin/backupctrl restore >/dev/null");
|
||||
}
|
||||
|
||||
&Header::showhttpheaders();
|
||||
|
||||
Reference in New Issue
Block a user