handle error output for filtered replications

This commit is contained in:
Christoph Klaffl 2024-04-18 08:22:37 +02:00
parent fdbbe28ac7
commit 6c1e31e551
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 5 additions and 1 deletions

View File

@ -1012,7 +1012,11 @@ sub syncincremental {
my $snapa = $intsnaps[$i];
my $snapb = $intsnaps[$i + 1];
writelog('INFO', "Performing an incremental sync between '$snapa' and '$snapb'");
syncincremental($sourcehost, $sourcefs, $targethost, $targetfs, $snapa, $snapb, 1) == 0 or return $?;
(my $ret, my $stdout) = syncincremental($sourcehost, $sourcefs, $targethost, $targetfs, $snapa, $snapb, 1);
if ($ret != 0) {
return ($ret, $stdout);
}
}
# Return after finishing the -i syncs so that we don't try to do another -I