pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Prakash Ramakrishnan <prakash.ramakrishnan.ap@nielsen.com>
Cc: David Steele <david@pgmasters.net>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: perl path issue
Date: Fri, 10 May 2019 09:14:16 -0700
Message-ID: <1e51499e-a684-66d8-b69e-0fa8777ab300@aklaver.com> (raw)
In-Reply-To: <CAA2eZXwC7T4qsRuFPmUBKiDsLuY2ZopYRdXvNYf8SpE7Nm7JYA@mail.gmail.com>
References: <CAA2eZXzZv-osh=6sEF6Gnk6bY6=rdhDhMtvFmiBc644mUUN7cw@mail.gmail.com>
	<1d7ca818-77ce-33e1-4f06-b522484372a4@aklaver.com>
	<5502a2bb-1ffa-a718-fae4-de6034821936@pgmasters.net>
	<CAA2eZXzjmEV8qt8_RuWvSVuvLuDYQp2N22pZSYq5C3p=Ao3T6Q@mail.gmail.com>
	<8c8409bd-99bd-abbb-afb7-8c4f49ba3460@pgmasters.net>
	<CAA2eZXzwXZcKFbZitro7dz6_7LT5aj7gYP5B+ae9ZoMwrDwMnA@mail.gmail.com>
	<946d2c1f-cbf1-ecfa-7ee1-925d1de6d7a5@aklaver.com>
	<CAA2eZXysqs5yw2tEu5+Ei9c2FtdH5RPjWeYDCYKuFYEz6z78bg@mail.gmail.com>
	<4e53d478-71b4-3359-78c2-1676c0cabe4d@pgmasters.net>
	<CAA2eZXzb4AkmgZgWzTP0Myro_K3JYC50SwgZyR7SBp3e7iP=aQ@mail.gmail.com>
	<45abfa02-2cfd-b05c-f54e-41a770bbc4ea@aklaver.com>
	<CAA2eZXwk7LUxt4VWt2AMPk_rYxWawnTXgdjQdXtCj9Z485+BNg@mail.gmail.com>
	<2ae6795e-cc9a-83c8-3e7f-a8ce6eba6a28@aklaver.com>
	<CAA2eZXwZVEdxeGDGhtKszCQS9S5_51r4Ms50KyKZA3aVj5Nv9Q@mail.gmail.com>
	<58271ac5-78bb-cc8b-c034-ed7303b326e4@aklaver.com>
	<CAA2eZXwC7T4qsRuFPmUBKiDsLuY2ZopYRdXvNYf8SpE7Nm7JYA@mail.gmail.com>

On 5/10/19 7:50 AM, Prakash Ramakrishnan wrote:
> Hi Adrian,
> 
> Production backup working fine now and previously dev server also 
> working fine.
> 
> Now the business team wants to restore the single database using 
> pgbackrest tool so we have setup the pgbackrest.conf file is like to 
> point prod .


The above is not much to go on. So a list of questions below. Please 
answer them all, thanks:

1) How was the production Postgres installed(EDB, native packages) and 
on what OS?

2) The dev Postgres is the one installed using EDB installer, correct?

3) Define working fine. In other words where you/are you using a backup 
method other then pgBackRest on the production and dev server?

4) When you say single database are you talking about a particular 
database in the Postgres cluster or the entire cluster?

5) Why is pgBackRest essential to this? In other words why not use the 
Postgres pg_dump/pg_restore tools?


As to below, this more then a Perl issue it is a package incompatibility 
issue.


> 
> and directly  restore the backup from prod so thats why not able to do 
> some perl issue .
> 
> database size is huge so they giving pressure and below is the config file,
> 
> ==> cat /etc/pgbackrest.conf
> #[global]
> #repo1-path=/Postgres/pgBACKUP/A4_sydcosausd001
> #retention-diff=4
> #retention-full=4
> #retention-archive=2
> #start-fast=y
> #process-max=4
> #archive-async=y
> 
> 
> #[global:archive-push]
> #process-max=4
> 
> #[A4_sydcosausd001]
> #db-path=/Postgres/pgDATA/data
> 
> *
> *
> *[global]*
> *repo1-host=sydcosafpp001.enterprisenet.org 
> <http://sydcosafpp001.enterprisenet.org>*
> *repo1-host-user=postgres*
> *repo1-host-config=/etc/pgbackrest.conf*
> *repo1-path=/pgBACKUP/A4_sydcosafpp001/backup/A4_sydcosafpp001*
> *
> *
> *[A4_sydcosafpp001]*
> *pg1-path=/Postgres/prakash_pgbackrest*
> postgres@sydcosausd001.enterprisenet.org:/home/postgres
> 
> 
> 
> On Fri, May 10, 2019 at 8:15 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 5/10/19 7:36 AM, Prakash Ramakrishnan wrote:
>      > Hi Adrian,
>      >
>      > I did the installation for like ,
>      >
>      > postgresql-10.4-1-linux-x64.run file.
>      >
>      > pgbackrest - yum install
>      >
>     https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rp
> 
>      >
>     <https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rp...
>      >
>      >
>      > yum install pgbackrest
> 
>     As explained upstream that is not going to work. The package YUM is
>     installing is assuming that it will be working with Postgres installed
>     from packages in the same repo. That is not the case. You might be able
>     to download the pgBackrest source and build it pointing at the Perl in
>     the EDB install, but I have no idea how to make that happen.
>      >
>      >
>      > now what is the problem means we have to trying restore the
>     backup prod
>      > to dev server.
>      >
> 
>     So was the prod backup taken with pgBackRest?
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 
> 
> 
> -- 
> 
> 
> 
> Thanks,
> Prakash.R
> PostgreSQL - Offshore DBA support TCS / Nielsen Infrastructure Team On 
> call : +91-8939599426


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (53+ messages)  latest in thread

Message-ID: <1e51499e-a684-66d8-b69e-0fa8777ab300@aklaver.com>
Permalink:  ../1e51499e-a684-66d8-b69e-0fa8777ab300@aklaver.com/
Also on:    postgresql.org/message-id/1e51499e-a684-66d8-b69e-0fa8777ab300@aklaver.com

 · 

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: adrian.klaver@aklaver.com, prakash.ramakrishnan.ap@nielsen.com, david@pgmasters.net
  Subject: Re: perl path issue
  In-Reply-To: <1e51499e-a684-66d8-b69e-0fa8777ab300@aklaver.com>
  References: <CAA2eZXzZv-osh=6sEF6Gnk6bY6=rdhDhMtvFmiBc644mUUN7cw@mail.gmail.com> <5502a2bb-1ffa-a718-fae4-de6034821936@pgmasters.net> <CAA2eZXzjmEV8qt8_RuWvSVuvLuDYQp2N22pZSYq5C3p=Ao3T6Q@mail.gmail.com> <8c8409bd-99bd-abbb-afb7-8c4f49ba3460@pgmasters.net> <CAA2eZXzwXZcKFbZitro7dz6_7LT5aj7gYP5B+ae9ZoMwrDwMnA@mail.gmail.com> <946d2c1f-cbf1-ecfa-7ee1-925d1de6d7a5@aklaver.com> <CAA2eZXysqs5yw2tEu5+Ei9c2FtdH5RPjWeYDCYKuFYEz6z78bg@mail.gmail.com> <4e53d478-71b4-3359-78c2-1676c0cabe4d@pgmasters.net> <CAA2eZXzb4AkmgZgWzTP0Myro_K3JYC50SwgZyR7SBp3e7iP=aQ@mail.gmail.com> <45abfa02-2cfd-b05c-f54e-41a770bbc4ea@aklaver.com> <CAA2eZXwk7LUxt4VWt2AMPk_rYxWawnTXgdjQdXtCj9Z485+BNg@mail.gmail.com> <2ae6795e-cc9a-83c8-3e7f-a8ce6eba6a28@aklaver.com> <CAA2eZXwZVEdxeGDGhtKszCQS9S5_51r4Ms50KyKZA3aVj5Nv9Q@mail.gmail.com> <58271ac5-78bb-cc8b-c034-ed7303b326e4@aklaver.com> <CAA2eZXwC7T4qsRuFPmUBKiDsLuY2ZopYRdXvNYf8SpE7Nm7JYA@mail.gmail.com> <1e51499e-a684-66d8-b69e-0fa8777ab300@aklaver.com>

* 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