Re: question about Postgresql and rsync

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: question about Postgresql and rsync
Date: 2005-11-03 15:39:29
Message-ID: 200511031539.jA3FdTB07663@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tony Caduto wrote:
> Hi,
> Does anyone know if it would be safe to use rsync to mirror a Postgresql
> setup to a backup server?
>
> I need to create a exact duplicate for a disaster recovery server, the
> disaster recovery server would not be in use until the production one
> went down for
> some reason.
>
> It seems to me that if the postmaster is stopped it should be safe.
> Comments?

Yes, it is safe if the postmaster is down. In fact our documention
recommends a trick of doing rsync while the postmaster is running, then
shutting down the postmaster just long enough to do another rsync to get
the changes into the backup.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2005-11-03 15:43:20 Re: question about Postgresql and rsync
Previous Message Ned Lilly 2005-11-03 15:29:41 Re: FOSS Reporting tools (was Oracle 10g Express - any