Re: Hard link backup strategy - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: Hard link backup strategy
Date
Msg-id 49D1DE5B.EE98.0025.0@wicourts.gov
Whole thread Raw
In response to Re: Hard link backup strategy  (Michael Monnerie <michael.monnerie@is.it-management.at>)
List pgsql-admin
Michael Monnerie <michael.monnerie@is.it-management.at> wrote:
> It is no problem if B reads, A can copy without a problem, even
> without the cp before mv.

B could open the file while it is being copied, and read to the
current end of file before A has finished copying.  If we used rsync
it would, by default, copy to a temporary file name in the target
directory and mv to the right name when complete, but we prefer the cp
to a temp directory and explicitly mv, because of the subsequent rsync
steps copyig out of the target directory.

-Kevin

pgsql-admin by date:

Previous
From: Emanuel Calvo Franco
Date:
Subject: Re: PG Patch
Next
From: Tom Lane
Date:
Subject: Re: PG Patch