From: | Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: archive_commnad parameter question |
Date: | 2021-04-19 21:19:38 |
Message-ID: | 95d35a2605b2b0257043e4cf0ac6be6953aae10f.camel@lists.simkin.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On Mon, 2021-04-19 at 21:09 +0000, Allie Crawford wrote:
> Hello,
> I am new in PostgreSQL and I am trying to understand what the “test” word is
> representing in the archive_command configuration that the PostgreSQL
> documentation is showing as the format on how to set up this parameter
>
> archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p
> /mnt/server/archivedir/%f' # Unix
>
> Does anybody know what is “test” representing in this parameter
> configuration?
'test' in this case is an actual executable present on many Unix and Unix-like
systems.
In this case it effectively gates the copy (cp) command so that it only runs
if the target file does not already exist.
From | Date | Subject | |
---|---|---|---|
Next Message | Podrigal, Aron | 2021-04-20 17:35:47 | Alter generated column expression |
Previous Message | Peter J. Holzer | 2021-04-19 21:18:45 | Re: archive_commnad parameter question |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2021-04-19 21:28:02 | Re: Reduce the number of special cases to build contrib modules on windows |
Previous Message | Peter J. Holzer | 2021-04-19 21:18:45 | Re: archive_commnad parameter question |