From: Glyn Astill <glynastill@yahoo.co.uk>
To: Campbell, Lance <lance@illinois.edu>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: pb_basebackup process not working
Date: Thu, 20 Oct 2016 12:11:20 +0000 (UTC)
Message-ID: <1120001028.699363.1476965480956@mail.yahoo.com> (raw)
In-Reply-To: <B75CD08C73BD3543B97E4EF3964B7D7047922F63@CITESMBX1.ad.uillinois.edu>
References: <B75CD08C73BD3543B97E4EF3964B7D7047922F63@CITESMBX1.ad.uillinois.edu>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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 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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: glynastill@yahoo.co.uk, lance@illinois.edu
Subject: Re: pb_basebackup process not working
In-Reply-To: <1120001028.699363.1476965480956@mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox