mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +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");
|
system("rm /tmp/include");
|
||||||
}
|
}
|
||||||
elsif ($ARGV[0] eq 'restore') {
|
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') {
|
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]'");
|
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;
|
print UPLOADFILE;
|
||||||
}
|
}
|
||||||
close UPLOADFILE;
|
close UPLOADFILE;
|
||||||
system("/usr/local/bin/backupctrl restore");
|
system("/usr/local/bin/backupctrl restore >/dev/null");
|
||||||
}
|
}
|
||||||
|
|
||||||
&Header::showhttpheaders();
|
&Header::showhttpheaders();
|
||||||
|
|||||||
Reference in New Issue
Block a user