Re: archive_command

Поиск
Список
Период
Сортировка
От Serge Fonville
Тема Re: archive_command
Дата
Msg-id AANLkTilXlzlfecbT0j_Z-8U1hkp5ajYXJvVFYE_Inndo@mail.gmail.com
обсуждение исходный текст
Ответ на Re: archive_command  (Jun Wang <junw2000@gmail.com>)
Список pgsql-general
Hi,

On Tue, Jun 1, 2010 at 8:47 PM, Jun Wang <junw2000@gmail.com> wrote:
> The document recommends a command as below:
>
> archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress || cp
> -i %p /var/lib/pgsql/archive/%f < /dev/null'
>
> How can this be done using windows batch? I tried the following
> command, but it did not work:
>
> archive_command = 'if not exist C:\\pgsql\\backup_in_progress || copy
> %p C:\\pgsqlarchive\\%f'
>
> The error is:
>
> || was unexpected at this time.
windows does not support OR in batch files.
if you remove || it should work....

HTH

Regards,

Serge Fonville


--
http://www.sergefonville.nl

Convince Google!!
They need to support Adsense over SSL
https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=10528
http://www.google.com/support/forum/p/AdSense/thread?tid=1884bc9310d9f923&hl=en

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

Предыдущее
От: Jun Wang
Дата:
Сообщение: Re: archive_command
Следующее
От: "Arnold, Sandra"
Дата:
Сообщение: PostgreSQL and NeXpose Rapid 7 Vulnerbility scanning software