> From: "Campbell, Lance" <lance@illinois.edu>
>To: "pgsql-admin@postgresql.org" <pgsql-admin@postgresql.org>
>Sent: Wednesday, 19 October 2016, 15:03
>Subject: [ADMIN] pb_basebackup process not working
>
>So I changed it to use the plain format. I now found that I cannot tar or gzip the output. So my next try was to
pipeit through gzip.
>
>pg_basebackup --host=localhost --xlog-method=stream --write-recovery-conf | gzip
${BACKUPS_HOME}/${BACKUP_DATE_TIME}.gz
>
>Now I get the error:
>
>pg_basebackup: no target directory specified
>
>What do I do next?
You can specify output to stdout if you use the tar format. So something like:
pg_basebackup --host=localhost --xlog-method=stream --write-recovery-conf --format=tar --pgdata - | gzip
${BACKUPS_HOME}/${BACKUP_DATE_TIME}.gz