/[BackupPC]/trunk/bin/BackupPC_recover_from_increments
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/BackupPC_recover_from_increments

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 356 by dpavlin, Thu Apr 27 09:36:18 2006 UTC revision 357 by dpavlin, Thu Apr 27 09:45:01 2006 UTC
# Line 108  sub restore_increment { Line 108  sub restore_increment {
108    
109          print "restoring $path\n";          print "restoring $path\n";
110    
111          my $cmd = "cd $inc_tmp_dir && tar xvfz $path";          my $cmd = "cd $inc_tmp_dir && tar xfz $path";
112          system($cmd) == 0 or die "can't execute: $cmd -- $?\n";          system($cmd) == 0 or die "can't execute: $cmd -- $?\n";
113    
114          print "starting import into BackupPC pool\n";          print "starting import into BackupPC pool\n";
# Line 173  foreach my $restore_inc (@ARGV) { Line 173  foreach my $restore_inc (@ARGV) {
173  }  }
174    
175  #unlink $config_file || die "can't remove $config_file: $!";  #unlink $config_file || die "can't remove $config_file: $!";
176    
177    rmtree($inc_tmp_dir) if (-e $inc_tmp_dir);

Legend:
Removed from v.356  
changed lines
  Added in v.357

  ViewVC Help
Powered by ViewVC 1.1.26