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 |