From: | Serge Fonville <serge(dot)fonville(at)gmail(dot)com> |
---|---|
To: | Jun Wang <junw2000(at)gmail(dot)com> |
Cc: | Kenichiro Tanaka <ketanaka(at)ashisuto(dot)co(dot)jp>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: archive_command |
Date: | 2010-06-01 18:59:27 |
Message-ID: | AANLkTilXlzlfecbT0j_Z-8U1hkp5ajYXJvVFYE_Inndo@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
On Tue, Jun 1, 2010 at 8:47 PM, Jun Wang <junw2000(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Arnold, Sandra | 2010-06-01 19:39:23 | PostgreSQL and NeXpose Rapid 7 Vulnerbility scanning software |
Previous Message | Jun Wang | 2010-06-01 18:47:41 | Re: archive_command |