From: Jürgen Fuchsberger <juergen.fuchsberger@uni-graz.at>
To: pgsql-admin <pgsql-admin@postgresql.org>
Cc: CS_DBA <cs_dba@consistentstate.com>
Subject: Re: copy / backup question - copying a data directory while the db is shutdown
Date: Tue, 25 Mar 2014 08:40:00 +0100
Message-ID: <533132D0.5030305@uni-graz.at> (raw)
In-Reply-To: <5330B5DD.7030805@consistentstate.com>
References: <5330B5DD.7030805@consistentstate.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hi,
On 03/24/2014 11:46 PM, CS_DBA wrote:
> Hi All;
>
> If I shutdown a HOT standby slave (via the -m fast command) can I then
> copy the data directory to a "backup" location and be guaranteed that
> the backup copy will start?
Yes, but you must also backup the WAL archive from which you are
recovering (in case you are using file based log shipping and not
streaming replication). For streaming replication I don't know if it works.
Also you should check if postgres really stopped, since on high load
even the fast option can fail to stop it. Look here on how to do this:
http://www.postgresql.org/message-id/53040588.9020803@coxinc.com>
> For some reason I thought there were issues (or potential issues) with
> this method and a PITR based recovery approach was a better guarantee
> that the copy will start
>
>
> Thoughts?
>
Info about other options appreciated.
>
>
Best,
Juergen
--
| Jürgen Fuchsberger, M.Sc.
| Wegener Center for Climate and Global Change
| University of Graz
Attachments:
signature.asc (application/pgp-signature, 290B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: juergen.fuchsberger@uni-graz.at, cs_dba@consistentstate.com
Subject: Re: copy / backup question - copying a data directory while the db is shutdown
In-Reply-To: <533132D0.5030305@uni-graz.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox