Re: archive_commnad parameter question

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: archive_commnad parameter question
Дата
Msg-id 38a9c7ef-a301-39b9-3766-85f67a6c4e17@aklaver.com
обсуждение исходный текст
Ответ на archive_commnad parameter question  (Allie Crawford <CrawfordMA@ChurchofJesusChrist.org>)
Список pgsql-general
On 4/19/21 2:09 PM, 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?

Per the docs:

"This is an example, not a recommendation, and might not work on all 
platforms."

test in this case refers to a shell command:

https://www.computerhope.com/unix/bash/test.htm

So this only works in environments that have that command.

> 
> Thank in advance for your help on this.
> 
> Regards,
> 
> Allie
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



В списке pgsql-general по дате отправления:

Предыдущее
От: Allie Crawford
Дата:
Сообщение: archive_commnad parameter question
Следующее
От: Gavan Schneider
Дата:
Сообщение: Re: archive_commnad parameter question