> From: "Campbell, Lance" <lance@xxxxxxxxxxxx> >To: "pgsql-admin@xxxxxxxxxxxxxx" <pgsql-admin@xxxxxxxxxxxxxx> >Sent: Wednesday, 19 October 2016, 15:03 >Subject: 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 pipe it 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 -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin