Re: pb_basebackup process not working - Mailing list pgsql-admin

From Glyn Astill
Subject Re: pb_basebackup process not working
Date
Msg-id 1120001028.699363.1476965480956@mail.yahoo.com
Whole thread Raw
In response to pb_basebackup process not working  ("Campbell, Lance" <lance@illinois.edu>)
List pgsql-admin
> 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


pgsql-admin by date:

Previous
From: Κοκμάδης Δημήτριος
Date:
Subject: Re: Docker with data inside
Next
From: Davide Toller
Date:
Subject: Lost superuser login grant