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 1hPSMH-0006lx-3v for pgsql-general@arkaria.postgresql.org; Sat, 11 May 2019 13:48:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hPSMF-0007kc-PY for pgsql-general@arkaria.postgresql.org; Sat, 11 May 2019 13:48:11 +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 1hPSMF-0007kU-GI for pgsql-general@lists.postgresql.org; Sat, 11 May 2019 13:48:11 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hPSMB-000228-Qh for pgsql-general@lists.postgresql.org; Sat, 11 May 2019 13:48:10 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9FF2C29492; Sat, 11 May 2019 09:48:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 11 May 2019 09:48:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=2 rE9+jsR/fo1ujZuYi08fvj3K0Mgjj0RcEfX+o+/9P4=; b=mOotC8jquONXc4GZf oWwsigUlDYzOXb0kZqFymx5dfisG2/TwZciPMv1Owy/qt9KHwS+nPKWNUfOnBBCY /lige8QYNDO8slFUAl211mr39n8VpwcjqvcOsZjqJ26f/5I5+2ftXoD37DH/J9wD V9EGzm3BvLAnJasODv2cEYWrF72BC2S+JkXJF+po4OtnqBQAJnC6a8PlNQViP5NY a/XKP/aTq3wmhilFcC6vrUW077kiZpMNPIqlFermP7wJuBedfewmbZA3IxyWAK+D INSvKNS9S0C8G+X+c1Cm7keOslTx4mWtRX0VMVNocsTuEOnxToNxiq4ewZVoLZ0H XAVdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=2rE9+jsR/fo1ujZuYi08fvj3K0Mgjj0RcEfX+o+/9 P4=; b=DJdOVJt3M/cS/iDwo9U3LzdPdAiazoCANuIhOLLnq4guQMAlLLAXLPXYK bEYRa1LAT1clyiDdEb4rzySQ2q+YE0yQ0dGC7U4rDymoKaYdhucufkoOwFgwqAOJ e82xCCz+70/y6RVOlUQ6RBXUEFYYOIo5I8Oo2UpAcKMeq8+XBggZwrU4H+52GKJV Wi8F9YRVaacCb/mF4d/J1e1sSlZzxL6vkPO+lKbd3kRMexlTGzV30GoqotgAbWZs qvXOIksHFlt1V0ncPTNfa1AgNw9jcTa/HZj8yF6drFTR6BTtGs3NBUaRJ4w+wwtc OwAoPlaFdBm1RAtv9WDsIuA3xEdLQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrledtgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpegvnhhtvghrphhrihhsvghnvghtrdhorhhgpdgsrggtkhhuphdr ihhnfhhopdhpohhsthhgrhgvshhqlhdrohhrghdpgedquddqlhhinhhugidqgieigedrrh hunhenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id A7B2E1037C; Sat, 11 May 2019 09:48:05 -0400 (EDT) Subject: Re: perl path issue To: Prakash Ramakrishnan Cc: David Steele , "pgsql-generallists.postgresql.org" References: <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> <1e51499e-a684-66d8-b69e-0fa8777ab300@aklaver.com> From: Adrian Klaver Message-ID: <805b87a3-9849-7366-2e38-7dc63c8123c2@aklaver.com> Date: Sat, 11 May 2019 06:48:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/10/19 6:49 PM, Prakash Ramakrishnan wrote: > Hi Adrian, If I am following the below correctly you have EDB Postgres and pgBackRest running together on the prod server, correct? If so what was done different/is different on the dev server? > > 1) How was the production Postgres installed(EDB, native packages) and > on what OS? > > prod has been installed edb standard edition .run file and os CENTOS 7.5 > > 2) The dev Postgres is the one installed using EDB installer, correct? > > yes > > 3) Define working fine. In other words where you/are you using a backup > method other then pgBackRest on the production and dev server? > > Please find prod config file and backup details, > > ==> cat /etc/pgbackrest.conf > [global] > repo1-path=/pgBACKUP/A4_sydcosafpp001 > retention-diff=3 > retention-full=1 > retention-archive=2 > start-fast=y > process-max=12 > archive-async=y > > > [global:archive-push] > process-max=4 > > [A4_sydcosafpp001] > pg1-path=/Postgres/pgDATA/data > postgres@sydcosafpp001.enterprisenet.org:/home/postgres > ==> cd /pgBACKUP/A4_sydcosafpp001/ > archive/ backup/ > postgres@sydcosafpp001.enterprisenet.org:/home/postgres > ==> cd /pgBACKUP/A4_sydcosafpp001/backup/A4_sydcosafpp001/ > postgres@sydcosafpp001.enterprisenet.org:/pgBACKUP/A4_sydcosafpp001/backup/A4_sydcosafpp001 > ==> ls -lrth > total 114K > drwxr-x---. 4 postgres postgres   44 Jan  7 01:08 backup.history > drwxr-x---. 3 postgres postgres   96 May  4 21:30 20190504-190001F > drwxr-x---. 3 postgres postgres   96 May  5 19:41 > 20190504-190001F_20190505-190002I > drwxr-x---. 3 postgres postgres   96 May  6 20:28 > 20190504-190001F_20190506-190002I > drwxr-x---. 3 postgres postgres   96 May  7 20:26 > 20190504-190001F_20190507-190004I > drwxr-x---. 3 postgres postgres   96 May  8 20:28 > 20190504-190001F_20190508-190002I > drwxr-x---. 3 postgres postgres   96 May  9 20:32 > 20190504-190001F_20190509-190001I > drwxr-x---. 3 postgres postgres   96 May 10 20:32 > 20190504-190001F_20190510-190001I > lrwxrwxrwx. 1 postgres postgres   33 May 10 20:32 latest -> > 20190504-190001F_20190510-190001I > -rw-r-----. 1 postgres postgres 5.7K May 10 20:32 backup.info > > -rw-r-----. 1 postgres postgres 5.7K May 10 20:32 backup.info.copy > > > > 4) When you say single database are you talking about a particular > database in the Postgres cluster or the entire cluster? > > we need restore for single database for single cluster. > > 5) Why is pgBackRest essential to this? In other words why not use the > Postgres pg_dump/pg_restore tools? > > pgbackrest tool need for backup and restore larger databases. > if suppose am using pg_dump and restore they wont accept it and taking > too much time using parallel option also so we use for pgbackrest. > > > On Fri, May 10, 2019 at 9:44 PM Adrian Klaver > wrote: > > 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 > > > * > > *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 > > > >      > > > >  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 > > > -- > Adrian Klaver > 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