From: | Fujii Masao <masao(dot)fujii(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-02 02:22:07 |
Message-ID: | AANLkTilZ1J7EPoq5z_9uC-50vKKUg8u1MJFoS5Dk-gh6@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Jun 2, 2010 at 3:47 AM, 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'
You want to take "standalone hot backup" instead of normal one? If not,
you don't need to check the file "backup_in_progress".
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2010-06-02 02:32:48 | Re: Disable executing external commands from psql? |
Previous Message | Ken Tanzer | 2010-06-02 02:21:27 | Re: Disable executing external commands from psql? |