Re: somewhat wrong archive_command example - Mailing list pgsql-docs

From Euler Taveira
Subject Re: somewhat wrong archive_command example
Date
Msg-id 502EA9C2.2030100@timbira.com
Whole thread Raw
In response to Re: somewhat wrong archive_command example  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-docs
On 17-08-2012 16:51, Peter Eisentraut wrote:
> Btw., is anyone else concerned about using plain cp for this?  If the cp fails
> half-way, it leaves a partial file around, but subsequent file existence
> checks will find the file OK and skip it.
>
I've already faced this problem (with cp and scp).

> I have occasionally used some combination of mktemp + cp + mv, which seems to
> work around this problem.
>
That's what rsync uses, no? Your suggestion or rsync seem safe options to me.
But if you insist on an academic example using cp, at least comment that it
can fail in some cases.


--
   Euler Taveira de Oliveira - Timbira       http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Would like to contribute a section to docs for 9.3. Where to start?
Next
From: Chris Travers
Date:
Subject: Re: Would like to contribute a section to docs for 9.3. Where to start?