Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP6qo-0004tE-4H for pgsql-general@arkaria.postgresql.org; Fri, 10 May 2019 14:50:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hP6qm-0007ZX-Lv for pgsql-general@arkaria.postgresql.org; Fri, 10 May 2019 14:50:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP6qm-0007ZQ-Bx for pgsql-general@lists.postgresql.org; Fri, 10 May 2019 14:50:16 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP6qi-0003Ff-S8 for pgsql-general@lists.postgresql.org; Fri, 10 May 2019 14:50:15 +0000 Received: by mail-lj1-x241.google.com with SMTP id e13so5310440ljl.11 for ; Fri, 10 May 2019 07:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nielsen-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/VvoS9MKwfovd7FobXE16M1CQeisLDd5w/w0L9cHEaE=; b=lgvHqzHsw9o6w2DmnefVxRDngqs1qZ1eF1SNiT0M3LdiQfciuwHkcd7Kz1+WPuGl3z OgoYbPuBv+F/AoNIcEdHOftURkh6Ql1xhx5wZrz3O0PYT62FCdQwS29Fte6aTgYXqxT1 jZX9rA+9QmGwwC6vfkffkTJAlwdIhXYmr0YbTNINvByfNRWaHVKXWmMP0R3Wj0N7bBFr p1aGxn2OsyZKp06UPxBRGiqrNQjH+2WLV8IIrPGd39CQv6XTbgAU6ush/PnQRxvD1yot VRz4bPK8NZMfNNHg/lMNsXUTPDtJ+Chr3mxGw1z3tEHxEktGI8wzCg1HYo2k1eGHyd++ Av1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/VvoS9MKwfovd7FobXE16M1CQeisLDd5w/w0L9cHEaE=; b=qsp3/MYEXdOmwP7C0rg9U714GugBcD/ZRBgTp0kSXia/oCYaCq6NF85iHHHbwAIuj8 M2fU9TK4+k37WO96hDAxvs9M3L1LpvHiQVOERE+ZFjha/QyE8/9Yrq/OTV9oIpVEsPV0 rNJlXrAJq+jBgHkHmRpM2WqmS/ilICciTrmtJCcIzQwFtzU0DeyhJvNHP9TUa2v8lRkY 64t0qY+31USJfrdzauvSt8K/W7hYd0DZUj2UOYvu6ec82o6EJrr6AUMKQDus9wxMRZd+ 2RbeWQoGgczehRALFipEsHCEFLz12KvwKx5obx8Fp/y6HXrDXzvl/RHqhKtFkhu+WPqE Ir4w== X-Gm-Message-State: APjAAAUhg01aN+QN4/FMA6RiOoz5kP3ujSOW0deU0oNSQyqmMiMH/PT1 rmw1/Ib7d+GHYLx0y1maD/KCNokklzX7l672zl6mfQ== X-Google-Smtp-Source: APXvYqwmO8p4s+yiNHdUpQViI50RZkaXWl34fCghZidLDKXH/0zYLpjzroURRRMiVsYQhdZ7gEv6VKeDKj4DlQLV+uc= X-Received: by 2002:a2e:98c6:: with SMTP id s6mr6219447ljj.161.1557499811600; Fri, 10 May 2019 07:50:11 -0700 (PDT) MIME-Version: 1.0 References: <1d7ca818-77ce-33e1-4f06-b522484372a4@aklaver.com> <5502a2bb-1ffa-a718-fae4-de6034821936@pgmasters.net> <8c8409bd-99bd-abbb-afb7-8c4f49ba3460@pgmasters.net> <946d2c1f-cbf1-ecfa-7ee1-925d1de6d7a5@aklaver.com> <4e53d478-71b4-3359-78c2-1676c0cabe4d@pgmasters.net> <45abfa02-2cfd-b05c-f54e-41a770bbc4ea@aklaver.com> <2ae6795e-cc9a-83c8-3e7f-a8ce6eba6a28@aklaver.com> <58271ac5-78bb-cc8b-c034-ed7303b326e4@aklaver.com> In-Reply-To: <58271ac5-78bb-cc8b-c034-ed7303b326e4@aklaver.com> From: Prakash Ramakrishnan Date: Fri, 10 May 2019 20:20:00 +0530 Message-ID: Subject: Re: perl path issue To: Adrian Klaver Cc: David Steele , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000024477058889afb0" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000024477058889afb0 Content-Type: text/plain; charset="UTF-8" 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 . 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 * *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 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.rpm > >m > > > > > > 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 > -- Thanks, Prakash.R PostgreSQL - Offshore DBA support TCS / Nielsen Infrastructure Team On call : +91-8939599426 --000000000000024477058889afb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Adrian,

Produc= tion backup working fine now and previously dev server also working fine.

Now the business team wants to restore the single d= atabase using pgbackrest tool so we have setup the pgbackrest.conf file is = like to point prod .

and directly=C2=A0 restore th= e backup from prod so thats why not able to do some perl issue .
=
database size is huge so they giving pressure and below is t= he config file,

=3D=3D> cat /etc/pgbackres= t.conf
#[global]
#repo1-path=3D/Postgres/pgBACKUP/A4_sy= dcosausd001
#retention-diff=3D4
#retention-full=3D4
#retention-archive=3D2
#start-fast=3Dy
#process-= max=3D4
#archive-async=3Dy


#[global:archive-push]
#process-max=3D4

#[A4_sydcosausd001]
#db-path=3D/Postgres/pgDATA/data
=

[global]
repo1-host-user=3Dpostgres
<= b>repo1-host-config=3D/etc/pgbackrest.conf
repo1-path=3D/p= gBACKUP/A4_sydcosafpp001/backup/A4_sydcosafpp001

<= /div>
[A4_sydcosafpp001]
pg1-path=3D/Postgres/praka= sh_pgbackrest
postgres@sydcosausd001.enterprisenet.org:/home/= postgres



On Fri, May 10, 201= 9 at 8:15 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 5/10/19 7:36 AM, Prakash Ramakrishnan wrote: > Hi=C2=A0Adrian,
>
> 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.rpm>m
>
>
> 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 pro= d
> to dev server.
>

So was the prod backup taken with pgBackRest?

--
Adrian Klaver
adrian.klave= r@aklaver.com


--



Thanks,
Prak= ash.R
PostgreSQL - Offshore DBA support TCS / Nielsen Infrastruct= ure Team On call : +91-8939599426
--000000000000024477058889afb0--