From a97442adcd2b7cd72c732b4ba1bc9bba87dd663d Mon Sep 17 00:00:00 2001 From: maniacikarus Date: Tue, 14 Aug 2007 18:55:35 +0000 Subject: [PATCH] Backup funktioniert jetzt auch via Webinterface git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@768 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- config/backup/backup.pl | 2 +- html/cgi-bin/backup.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/backup/backup.pl b/config/backup/backup.pl index 67f53d0e0..2f307f649 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -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]'"); diff --git a/html/cgi-bin/backup.cgi b/html/cgi-bin/backup.cgi index fc7706571..194a70e7e 100644 --- a/html/cgi-bin/backup.cgi +++ b/html/cgi-bin/backup.cgi @@ -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();