Re: Hard link / rsync backup strategy successful

Поиск
Список
Период
Сортировка
От Chander Ganesan
Тема Re: Hard link / rsync backup strategy successful
Дата
Msg-id 4A5FA757.4040009@otg-nc.com
обсуждение исходный текст
Ответ на Re: Hard link / rsync backup strategy successful  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: Hard link / rsync backup strategy successful
Список pgsql-admin
Kevin,

Kevin Grittner wrote:
> You have apparently missed the fact that rsync (unless you go out of
> your way to defeat this) will copy to a temporary filename, and then
> mv the new file in place of the old.  This doesn't modify the old
> file; it unlinks the copy you are replacing, leaving any other
> directory entries which point at the old data unaffected.
>
Ahh, there's the subtlety that I missed. :-)  I figured I was missing
something, since at face value it seems like your hard link strategy is
doomed to fail.

Thanks for the clarification :-)   That's a pretty nifty mechanism to
retain your old database versions.  I suppose you just have to be
careful to make a copy of the cluster before trying to start it up (lest
you break an older or newer backup).

--
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC  27560
919-463-0999/877-258-8987
http://www.otg-nc.com


В списке pgsql-admin по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Hard link / rsync backup strategy successful
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Hard link / rsync backup strategy successful