|From:||Bruce Momjian <bruce(at)momjian(dot)us>|
|To:||Josh Kupershmidt <schmiddy(at)gmail(dot)com>|
|Subject:||Re: confusing archive_command example|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
Josh Kupershmidt wrote:
> On the page:
> an example archive_command of:
> archive_command = 'cp -i %p /mnt/server/archivedir/%f </dev/null'
> is given. Then, a few lines later, an example archive command of:
> archive_command = 'test ! -f .../%f && cp %p .../%f'
> is given. I think this second command would be more clear if it used
> "/mnt/server/archivedir/" instead of "...", to tie in with the
> previous archive_command. It took me a minute to figure out that the
> three dots were supposed to be an ellipsis instead of a typo for the
> parent directory "..".
I agree our use of cp -i </dev/null is a little too fancy not to be
explained in the docs, so I have done so with the attached, applied
As far as "...", those are used to show only the important changes in
the string, which I think is the right approach, but I did change the
line so the dots are not right up against slashes:
archive_command = 'test ! -f ... %f && cp %p ... %f'
|Next Message||Tom Lane||2010-03-31 23:44:15||Re: confusing archive_command example|
|Previous Message||Heikki Linnakangas||2010-03-31 20:39:09||Re: Streaming replication document improvements|