pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: chiru r <chirupg@gmail.com>
Cc: Forums postgresql <pgsql-general@postgresql.org>
Subject: Re: PgBackrest questions
Date: Wed, 14 Mar 2018 18:17:01 -0400
Message-ID: <20180314221701.GO2416@tamriel.snowman.net> (raw)
In-Reply-To: <CA+RSxMhtDEE1=hmHGpy2Pr1aUt=3JNNoB+iLWp4Jx8dpsh3Qgw@mail.gmail.com>
References: <CA+RSxMhtDEE1=hmHGpy2Pr1aUt=3JNNoB+iLWp4Jx8dpsh3Qgw@mail.gmail.com>

Greetings,

* chiru r (chirupg@gmail.com) wrote:
> I am testing Pgbackrest and I have few questions.

Great!

> 1. I used postures user to perform backups and restores with Pgbackrest
> tool.
> The Trust authentication in pg_hba.conf file is working without issues.

Please don't use 'trust'.

> If I use md5 authentication in pg_hba_conf file and postgres user password
> .pgpass file, the pgbackrest backup is failing.

There really shouldn't ever be a need to use md5 authentication with
pgbackrest.  Instead, I'd strongly suggest you use 'peer'.  The 'peer'
method is perfectly safe as it depends on the authentication which
Unix provides, but it doesn't require a password or any of the
associated complications.  Note that 'trust' should *not* be used and
I'm glad to see that you're looking for alternatives to using 'trust'.

> 2.  All the restores through the backrest is going to refer the  Wal
> archive files under archive/<stanza name>/* directory, which are taken from
> pgbackrest?

When pgbackrest performs a restore, it will write out the recovery.conf
file for you which includes the restore command to pull the WAL from the
repo and stanza configured.  You shouldn't need to worry about where
those files are, specifically, coming from (and it's even possible that
it might change in the future...).  Is there a specific reason you're
asking?

> 3. What is the compression level by default in pgbackrest?

pgbackrest will use different compression levels depending on what
you're doing.  If your repo is compressed (the default), then zlib level
6 is used.  If you're storing your repo as uncompressed, then pgbackrest
will use level 3 compression for the network transfer.

Note that, in any case, pgbackrest only performs compression once- at
the source.  If the repo is compressed the the data is compressed to
level 6 at the source and then streamed directly out to disk in that
compressed form.  If the repo is uncompressed, then the data is
compressed to level 3 at the source and then decompressed before going
into the repo.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (6+ messages)  latest in thread

Message-ID: <20180314221701.GO2416@tamriel.snowman.net>
Permalink:  ../20180314221701.GO2416@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180314221701.GO2416@tamriel.snowman.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: sfrost@snowman.net, chirupg@gmail.com
  Subject: Re: PgBackrest questions
  In-Reply-To: <20180314221701.GO2416@tamriel.snowman.net>
  References: <CA+RSxMhtDEE1=hmHGpy2Pr1aUt=3JNNoB+iLWp4Jx8dpsh3Qgw@mail.gmail.com> <20180314221701.GO2416@tamriel.snowman.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