Re: PITR on Win32 - Archive and Restore - Mailing list pgsql-hackers-win32

From Bruce Momjian
Subject Re: PITR on Win32 - Archive and Restore
Date
Msg-id 200408090223.i792N0N01490@candle.pha.pa.us
Whole thread Raw
In response to Re: PITR on Win32 - Archive and Restore  (markir@coretech.co.nz)
Responses Re: PITR on Win32 - Archive and Restore  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers-win32
markir@coretech.co.nz wrote:
> Using :
>
> archive_command = '"copy "%p" "c:/databases/pgarchive/%f""'
>
> I see this is the log:
>
> LOG:  archive command ""copy
> "c:/databases/pgdata/pg_xlog/000000010000000000000000"
> "c:/databases/pgarchive/000000010000000000000000""" failed: return code 1
> The system cannot find the file specified.
>
> Looks like it is confused about what the executable is...

OK, I think I might see the cause.  Try this:

    archive_command = '""copy" "%p" "c:/databases/pgarchive/%f""'

In other words, quote the 'copy' command too.  Crazy --- yes.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-hackers-win32 by date:

Previous
From: markir@coretech.co.nz
Date:
Subject: Re: PITR on Win32 - Archive and Restore
Next
From: Tom Lane
Date:
Subject: Re: PITR on Win32 - Archive and Restore