pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: Don Seiler <don@seiler.us>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pgBackRest backup from standby
Date: Mon, 19 Feb 2018 14:09:21 -0500
Message-ID: <247a0aa5-7e02-6220-bdc2-5f6b1d001673@pgmasters.net> (raw)
In-Reply-To: <CAHJZqBBTRe=8rGrW+WjBU_Zy6hPp9OByo4dBR8M-bEgku8uEtw@mail.gmail.com>
References: <CAHJZqBAwmA4g84LV0Kiq58kFCpu835cPraah5i+uTP+4B3H8RQ@mail.gmail.com>
	<e0746162-fa29-19af-c735-1ac23007f87b@pgmasters.net>
	<CAHJZqBA+yuW3eXqn9OR5brNf1EE8NRbsrYJJpnejEe-BhXrbHg@mail.gmail.com>
	<3f5aa386-32df-4ea9-51a6-ae0c918fd04f@pgmasters.net>
	<CAHJZqBDp8Yt4atTvyNzV_1_R=9RB8U+2i8jq_X=c9+X=0KDR4A@mail.gmail.com>
	<4ae14a90-1f2d-09f6-5e56-1609acad51b0@pgmasters.net>
	<CAHJZqBB+pKxVYm_Np9HF5Ga+aDFK9M2+u9BPOj86ibP3d7nPdA@mail.gmail.com>
	<09b97a16-d7c4-e014-4e69-aa8b890cb6cc@pgmasters.net>
	<CANP8+jK4XkjQ75CYRoMzNbHbWAXUfkbyrD0Liwxd=nVhsMTq2Q@mail.gmail.com>
	<42d5f210-70e8-e7da-37ec-7903c69d008d@pgmasters.net>
	<CAHJZqBBTRe=8rGrW+WjBU_Zy6hPp9OByo4dBR8M-bEgku8uEtw@mail.gmail.com>

On 2/19/18 2:05 PM, Don Seiler wrote:
> On Mon, Feb 19, 2018 at 12:39 PM, David Steele <david@pgmasters.net
> <mailto:david@pgmasters.net>> wrote:
> 
> 
>     I read "open it for testing (or backups in this case)" as letting
>     recovery complete and promoting the cluster to a master before taking
>     the backup.
> 
>     Don, is that the case?  If it is, I think there's a problem with or
>     without a timeline switch.  If you confirm the backup is being taken as
>     above then I'll detail my concerns.
> 
> 
> Note that this is just for creating a couple of one-off backups to
> restore for our dev and pre-prod environments. Given that, I was going
> to open a new clone as its own cluster and take backups from that. The
> data would be the same though and suit purposes of the dev and pre-prod
> refreshes.
> 
> If I were taking backups for the purpose of production backups, I would
> not do things this way. That is the eventual plan but right now we
> aren't ready to make the changes necessary in the production environment.

OK, that's fine then.  You can play these to consistency and they'll be
fine.  I just wouldn't try to do any PITR using the production WAL archive.

-- 
-David
david@pgmasters.net




view thread (21+ messages)  latest in thread

Message-ID: <247a0aa5-7e02-6220-bdc2-5f6b1d001673@pgmasters.net>
Permalink:  ../247a0aa5-7e02-6220-bdc2-5f6b1d001673@pgmasters.net/
Also on:    postgresql.org/message-id/247a0aa5-7e02-6220-bdc2-5f6b1d001673@pgmasters.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: david@pgmasters.net, don@seiler.us, simon@2ndquadrant.com
  Subject: Re: pgBackRest backup from standby
  In-Reply-To: <247a0aa5-7e02-6220-bdc2-5f6b1d001673@pgmasters.net>
  References: <CAHJZqBAwmA4g84LV0Kiq58kFCpu835cPraah5i+uTP+4B3H8RQ@mail.gmail.com> <e0746162-fa29-19af-c735-1ac23007f87b@pgmasters.net> <CAHJZqBA+yuW3eXqn9OR5brNf1EE8NRbsrYJJpnejEe-BhXrbHg@mail.gmail.com> <3f5aa386-32df-4ea9-51a6-ae0c918fd04f@pgmasters.net> <CAHJZqBDp8Yt4atTvyNzV_1_R=9RB8U+2i8jq_X=c9+X=0KDR4A@mail.gmail.com> <4ae14a90-1f2d-09f6-5e56-1609acad51b0@pgmasters.net> <CAHJZqBB+pKxVYm_Np9HF5Ga+aDFK9M2+u9BPOj86ibP3d7nPdA@mail.gmail.com> <09b97a16-d7c4-e014-4e69-aa8b890cb6cc@pgmasters.net> <CANP8+jK4XkjQ75CYRoMzNbHbWAXUfkbyrD0Liwxd=nVhsMTq2Q@mail.gmail.com> <42d5f210-70e8-e7da-37ec-7903c69d008d@pgmasters.net> <CAHJZqBBTRe=8rGrW+WjBU_Zy6hPp9OByo4dBR8M-bEgku8uEtw@mail.gmail.com> <247a0aa5-7e02-6220-bdc2-5f6b1d001673@pgmasters.net>

* 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