Re: Archive Command Configuration

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Archive Command Configuration
Дата
Msg-id 20060324164530.GT90527@pervasive.com
обсуждение исходный текст
Ответ на Re: Archive Command Configuration  (Pallav Kalva <pkalva@livedatagroup.com>)
Ответы Re: Archive Command Configuration
Список pgsql-admin
On Fri, Mar 24, 2006 at 10:39:41AM -0500, Pallav Kalva wrote:
>   What do you think about this option ? If I just do scp from the
> /archives folder, I will be ok and wont copy any partial files at any
> time right ?
> archive_command = 'cp %p /archives-temp/%f && mv /archives-temp/%f
> /archives/%f'

A simple scp leaves you vulnerable to a WAL file only being partially
copied if a backhoe hits at just the right moment. I believe that
wouldn't be an issue with rsync, since it won't put a file in place
until it's completely transfered. So if you want to use scp, I think
you'd need to scp to a temporary directory, and then do a final move.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Bloated pg_shdepend_depender_index
Следующее
От: Pallav Kalva
Дата:
Сообщение: Re: Archive Command Configuration