pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: pgBackRest backup from standby
Date: Mon, 19 Feb 2018 09:18:59 -0500
Message-ID: <e0746162-fa29-19af-c735-1ac23007f87b@pgmasters.net> (raw)
In-Reply-To: <CAHJZqBAwmA4g84LV0Kiq58kFCpu835cPraah5i+uTP+4B3H8RQ@mail.gmail.com>
References: <CAHJZqBAwmA4g84LV0Kiq58kFCpu835cPraah5i+uTP+4B3H8RQ@mail.gmail.com>

Hi Don,

On 2/18/18 7:34 PM, Don Seiler wrote:
> 
> Looking to use pgBackRest to take a backup from a hot standby. I'm
> reading that pgBackRest still needs to connect to the primary and copy
> some files. My questions are:
> 
>  1. What files does it need to copy? Config files? WAL files?

It copies files that are not replicated from the primary so that a
primary-style backup is created. Anything that is replicated (which is
by far the bulk of the data) is copied from the standby.

>  2. How does it connect? SSH?

Yes.

>  3. Does pgBackRest need to be installed and configured on the primary
>     as well?

Yes.  Anyway, it's best to archive from the primary so a replication
failure does not affect your archiving.

Configuring pgBackRest, SSH, standby, and backup from standby are all
covered in the user guide.

http://pgbackrest.org/user-guide.html

In particular:

http://pgbackrest.org/user-guide.html#backup-host
http://pgbackrest.org/user-guide.html#replication
http://pgbackrest.org/user-guide.html#standby-backup

Regards,
-- 
-David
david@pgmasters.net




view thread (21+ messages)  latest in thread

Message-ID: <e0746162-fa29-19af-c735-1ac23007f87b@pgmasters.net>
Permalink:  ../e0746162-fa29-19af-c735-1ac23007f87b@pgmasters.net/
Also on:    postgresql.org/message-id/e0746162-fa29-19af-c735-1ac23007f87b@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
  Subject: Re: pgBackRest backup from standby
  In-Reply-To: <e0746162-fa29-19af-c735-1ac23007f87b@pgmasters.net>
  References: <CAHJZqBAwmA4g84LV0Kiq58kFCpu835cPraah5i+uTP+4B3H8RQ@mail.gmail.com> <e0746162-fa29-19af-c735-1ac23007f87b@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