/[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 347 by dpavlin, Tue Mar 7 14:03:12 2006 UTC revision 348 by dpavlin, Tue Mar 7 16:14:49 2006 UTC
# Line 101  sub restore_increment { Line 101  sub restore_increment {
101    
102          $bpc->ServerMesg("log User $user started recovery from increment $path");          $bpc->ServerMesg("log User $user started recovery from increment $path");
103    
104          my $full = 0;          my @backups = $bpc->BackupInfoRead( $host );
105    
106            my $full = 1;
107            foreach my $b (@backups) {
108                    $full = 0 if ($b->{type} eq 'full');
109            }
110    
111          my $r = $bpc->ServerMesg("backup $host $host $user $full");          my $r = $bpc->ServerMesg("backup $host $host $user $full");
112          print "backup --> $r";          print "backup ", $full ? 'full' : 'incremental', " --> $r";
113          die $r if ($r =~ m/^error/);          die $r if ($r =~ m/^error/);
114    
115          # Status_backup_in_progress          # Status_backup_in_progress

Legend:
Removed from v.347  
changed lines
  Added in v.348

  ViewVC Help
Powered by ViewVC 1.1.26