/[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 343 by dpavlin, Tue Mar 7 10:24:26 2006 UTC revision 344 by dpavlin, Tue Mar 7 10:42:35 2006 UTC
# Line 48  my $TopDir = $bpc->TopDir(); Line 48  my $TopDir = $bpc->TopDir();
48  # check if host exists  # check if host exists
49    
50  my $host_info = $bpc->HostInfoRead( $host );  my $host_info = $bpc->HostInfoRead( $host );
51  #print Dumper($host_info, $bpc->HostInfoRead( 'localhost' ));  print Dumper($host_info, $bpc->HostInfoRead( 'localhost' ));
52  die "host '$host' is not found\n" unless ($host_info->{$host});  die "host '$host' is not found, please add it to config/hosts configuration file\n" unless ($host_info->{$host});
53    
54  # create restore host configuration  # create restore host configuration
55    
# Line 91  sub restore_increment { Line 91  sub restore_increment {
91          }          }
92          link $path, $restore_path || die "can't create link $path -> $restore_path: $!\n";          link $path, $restore_path || die "can't create link $path -> $restore_path: $!\n";
93    
94          $bpc->ServerMesg("log User backuppc started restore of $path");          my $user = $host_info->{$host}->{user} || die "can't get user for host $host";
95    
96            $bpc->ServerMesg("log User $user started recovery from increment $path");
97    
98          my $full = 0;          my $full = 0;
99          my $r = $bpc->ServerMesg("backup $host $host backuppc $full");          my $r = $bpc->ServerMesg("backup $host $host $user $full");
100          print "backup --> $r";          print "backup --> $r";
101          die $r if ($r =~ m/^error/);          die $r if ($r =~ m/^error/);
102    

Legend:
Removed from v.343  
changed lines
  Added in v.344

  ViewVC Help
Powered by ViewVC 1.1.26