pg_basebackup exit codes

2019-08-19 Thread John Donath
Hi, I was unpleasantly surprised to see that pg_basebackup will return a zero (Success) exit code even when it has actually failed like below: pg_basebackup: could not write to compressed file "/var/lib/pgsql/10/inst1/backup/cust-pg02_inst1_Fri_20190816/base.tar.gz": No space left on device pg

RE: pg_basebackup exit codes

2019-08-19 Thread John Donath
Thanks a lot Magnus! I should have known better … ☺ But thanks for the PIPESTATUS hint which comes in uttermost handy Regards, John Van: Magnus Hagander Verzonden: maandag 19 augustus 2019 13:46 Aan: John Donath CC: pgsql-general@lists.postgresql.org Onderwerp: Re: pg_basebackup exit codes