From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: LEROY TENNISON <leroy_tennison@prodigy.net>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: archive_command options?
Date: Thu, 4 Apr 2019 23:14:16 +0200
Message-ID: <38b0f300-4c24-54f9-d5de-683508541c47@2ndquadrant.com> (raw)
In-Reply-To: <1222332414.512321.1554322572303@mail.yahoo.com>
References: <1222332414.512321.1554322572303.ref@mail.yahoo.com>
<1222332414.512321.1554322572303@mail.yahoo.com>
On 2019-04-03 22:16, LEROY TENNISON wrote:
> Postgresql documentation lists the following as an archive command for
> log shipping:
>
> archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p
> /mnt/server/archivedir/%f'
>
> The problem is that it is very fragile.
A more robust alternative is to use pg_receivewal.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: peter.eisentraut@2ndquadrant.com, leroy_tennison@prodigy.net, pgsql-admin@lists.postgresql.org
Subject: Re: archive_command options?
In-Reply-To: <38b0f300-4c24-54f9-d5de-683508541c47@2ndquadrant.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