Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewEhm-00063R-6C for pgsql-general@arkaria.postgresql.org; Wed, 14 Mar 2018 22:17:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewEhl-0004CM-0h for pgsql-general@arkaria.postgresql.org; Wed, 14 Mar 2018 22:17:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewEhk-0004CB-LK for pgsql-general@lists.postgresql.org; Wed, 14 Mar 2018 22:17:04 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewEhi-0002zr-8w for pgsql-general@postgresql.org; Wed, 14 Mar 2018 22:17:03 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A3EF85F79C; Wed, 14 Mar 2018 18:17:01 -0400 (EDT) Date: Wed, 14 Mar 2018 18:17:01 -0400 From: Stephen Frost To: chiru r Cc: Forums postgresql Subject: Re: PgBackrest questions Message-ID: <20180314221701.GO2416@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Mdxmf4qeTc636ykW" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Mdxmf4qeTc636ykW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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//* 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 --Mdxmf4qeTc636ykW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaqZ9dAAoJEO1sijiDR2RVjpgQAIHlvrsLu/cWguz+SHoT+07f H++XHRrw/O14me3g8PsqhXublpkLh+g1mxaw+2DgvisOj40PEM94fvKbzqk7f+lU EX2gnY4w+Huw98HU2+UaS+A+fccFIVfmohBgj3kDOIeNg+SYrX7i5sGv1TUXc/gX F3BlXejE47JqOxvXJeXGQM+AxsReUsQiJ5eU0Qq+vRHx53yKQYS3SbcYtz0GRVqN SJFLGLdrXI/CiiW4kxtnGYY6PpLKOYePAMu8VmFgBZJi4lZXWEHScnD/XxapESOg r0YkrFje25GoiMYASh+daj2BE6hKpeU3Tnge3u/CiGfd+k1+qIXog/jOgc2Zce56 iBHmDxWmS3mTJhcvaVYjK7mnvklsTod4edncHZdWsUFKbdWVXwzKvyF/FXOtY521 hR8nO/Lm6lzossN/sTBiuplpXq2chz6rHFdC/fo+symvJs0rV1bhWxzMghbmlkDh HxUsGQF9O9HNew8loeqd15KZwRmCMWutviJXecUDGK9MbOT5NP+3VjW+AbbhyWh3 GjtFBu8dTlxtCuHw0luBAHZ/ih/8BmlmHQvvBQuSJBNPumuiDTUSVU9ev2Glsgmy CW3btPwP4ZQ35KgFkWIUXWow9xgNhJ+fbi7HISnY335dUIPm0PD9SuRXd4Im/9/A DwB/oz927/H1CF8zG1lm =EAAO -----END PGP SIGNATURE----- --Mdxmf4qeTc636ykW--