Thanks a lot Magnus! I should have known better …
J But thanks for the PIPESTATUS hint which comes in uttermost handy Regards, John Van: Magnus Hagander <magnus@xxxxxxxxxxxx> On Mon, Aug 19, 2019 at 12:18 PM John Donath <John.Donath@xxxxxxxxx> wrote:
I think your problem is that you are looking at the exit code from "tee" and not from pg_basebackup. If you are using bash, you can look at something like $PIPESTATUS to get the exit code from the actual comman dbefore the pipe. Or you
can try removing the tee command to verify if this is indeed where the problem is coming from. -- Magnus Hagander |