Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSLy1-00034S-N2 for pgsql-admin@arkaria.postgresql.org; Tue, 25 Mar 2014 07:40:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WSLy1-00032I-5V for pgsql-admin@arkaria.postgresql.org; Tue, 25 Mar 2014 07:40:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSLxz-00030Y-Bu for pgsql-admin@postgresql.org; Tue, 25 Mar 2014 07:40:11 +0000 Received: from ex07htca01.uni-graz.at ([143.50.13.79]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSLxw-0007fC-EV for pgsql-admin@postgresql.org; Tue, 25 Mar 2014 07:40:11 +0000 Received: from ex07htca03.pers.ad.uni-graz.at (2002:8f32:d55::8f32:d55) by ex07htca01.pers.ad.uni-graz.at (2002:8f32:d4f::8f32:d4f) with Microsoft SMTP Server (TLS) id 8.3.342.0; Tue, 25 Mar 2014 08:40:06 +0100 Received: from [192.168.2.112] (143.50.203.90) by ex07htca03.pers.ad.uni-graz.at (143.50.13.85) with Microsoft SMTP Server (TLS) id 8.3.342.0; Tue, 25 Mar 2014 08:40:06 +0100 Message-ID: <533132D0.5030305@uni-graz.at> Date: Tue, 25 Mar 2014 08:40:00 +0100 From: =?ISO-8859-1?Q?J=FCrgen_Fuchsberger?= Organization: Wegener Center for Climate and Global Change User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131104 Icedove/17.0.10 MIME-Version: 1.0 To: pgsql-admin CC: CS_DBA Subject: Re: copy / backup question - copying a data directory while the db is shutdown References: <5330B5DD.7030805@consistentstate.com> In-Reply-To: <5330B5DD.7030805@consistentstate.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HAkNILwf9eAL60RMvv6f1MQJvHNl5d2ES" X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org --HAkNILwf9eAL60RMvv6f1MQJvHNl5d2ES Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, On 03/24/2014 11:46 PM, CS_DBA wrote: > Hi All; >=20 > 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 work= s. 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 >=20 > 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 >=20 >=20 > Thoughts? >=20 Info about other options appreciated. >=20 >=20 Best, Juergen --=20 | J=FCrgen Fuchsberger, M.Sc. | Wegener Center for Climate and Global Change | University of Graz --HAkNILwf9eAL60RMvv6f1MQJvHNl5d2ES Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREIAAYFAlMxMtUACgkQ4RNsce5/DgBfHQD/S8O2ioftWkLq/LYvyeYThXzB elcK79zQ7e2zSNqIjQYBAJHuMUniUV9Jy460l45rGFOxsrndnaPZfGVYybfrsEx3 =rIAr -----END PGP SIGNATURE----- --HAkNILwf9eAL60RMvv6f1MQJvHNl5d2ES--