From: | Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk> |
---|---|
To: | "Campbell, Lance" <lance(at)illinois(dot)edu>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: pb_basebackup process not working |
Date: | 2016-10-20 12:11:20 |
Message-ID: | 1120001028.699363.1476965480956@mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
> From: "Campbell, Lance" <lance(at)illinois(dot)edu>
>To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Davide Toller | 2016-10-20 12:25:04 | Lost superuser login grant |
Previous Message | Κοκμάδης Δημήτριος | 2016-10-20 12:07:04 | Re: Docker with data inside |