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:
maniacikarus
2007-08-14 18:55:35 +00:00
parent 18720f431f
commit a97442adcd
2 changed files with 2 additions and 2 deletions

View File

@@ -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]'");

View File

@@ -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();