r602@athlon: dpavlin | 2006-04-27 11:43:41 +0200
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Thu, 27 Apr 2006 09:45:01 +0000 (09:45 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Thu, 27 Apr 2006 09:45:01 +0000 (09:45 +0000)
 don't display files while extracting, remove IncrementTempDir after finish

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@357 8392b6e1-25fa-0310-8288-cc32f8e212ea

bin/BackupPC_recover_from_increments

index 274ed28..37c941e 100755 (executable)
@@ -108,7 +108,7 @@ sub restore_increment {
 
        print "restoring $path\n";
 
-       my $cmd = "cd $inc_tmp_dir && tar xvfz $path";
+       my $cmd = "cd $inc_tmp_dir && tar xfz $path";
        system($cmd) == 0 or die "can't execute: $cmd -- $?\n";
 
        print "starting import into BackupPC pool\n";
@@ -173,3 +173,5 @@ foreach my $restore_inc (@ARGV) {
 }
 
 #unlink $config_file || die "can't remove $config_file: $!";
+
+rmtree($inc_tmp_dir) if (-e $inc_tmp_dir);