Skip to content

Commit

Permalink
handle error output for filtered replications
Browse files Browse the repository at this point in the history
  • Loading branch information
phreaker0 committed Apr 18, 2024
1 parent fdbbe28 commit 6c1e31e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syncoid
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c1e31e

Please sign in to comment.