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 1hP8DW-0000Ok-9s for pgsql-general@arkaria.postgresql.org; Fri, 10 May 2019 16:17:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hP8DV-00064Z-0J for pgsql-general@arkaria.postgresql.org; Fri, 10 May 2019 16:17:49 +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 1hP8AC-00068o-QB for pgsql-general@lists.postgresql.org; Fri, 10 May 2019 16:14:24 +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 1hP8A8-0005VV-1X for pgsql-general@lists.postgresql.org; Fri, 10 May 2019 16:14:24 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5037C22460; Fri, 10 May 2019 12:14:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 10 May 2019 12:14:18 -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=W oA59TOitlnzdM0g3oXXIOL+dzRwZkeu7f1sOgNVkNo=; b=t/nFdS39AYP22+Scj vh5uJp+d2zDnz1PX/FeatJz9yn0cIN5B1SQhqrXQ+CabjYuvXIbdGMHA9mxbwle2 mqoGTTwdAdlWpGHgJBlkKQVdmN6lvyBP+PNYru1bP93SpFVMdAvXzV9LsjVGZmje gcovbEwpbWpdxl7J+zzy2Oskf+I3L7EBbLKjGf2woU88v3eua+6GOYMLkFLxH2mZ lKXA0R4rLbn5QRXexQbe5zASfzbaB/HLGTVRAUx5arm9Adfr7Zjuq2dTU0AVPP8z oLrZehDzFo2CcHQHA2IoAZf96dR6jl5VStc1EZtAvU2KB6MhkpSTifBWFBHMPf8h 7niig== 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=WoA59TOitlnzdM0g3oXXIOL+dzRwZkeu7f1sOgNVk No=; b=ddbpe6/QP0xs60Bphn1qhZFs20OhRP1ddvDqRmJ51YFULiwDIihdUeoe3 zv/cMqyXEVIr8OYbfVV15KtIBGg7DsC/ezyfuZWCMsNolVY5S0yVwuDBb1RQ/KoC iN3KYXB0AblwZVYtosYoGSOagJS3VtqtcKHoF6+i8Q7Qqbjd18O8+IBzDrRgIe+2 XJWWqWjr4svMxFZqAvo4ocjE0wnAHIgXgqXri0Gm5Y2FKZha+x9SfjaG5Q94eHvE syEx6r00DxbjDsTyZVSdvqnpB1lJnzWLqqEmbvFL0JL/nG006dURy4xUxKOYE0/a SmKEKTFKhfiP6YZoKa+OffKVJ8erQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeekgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepvghnthgvrhhprhhishgvnhgvthdrohhrghdpphhoshhtghhr vghsqhhlrdhorhhgpdegqdduqdhlihhnuhigqdigieegrdhruhhnnecukfhppeejgedrle efrddutdehrddukeeinecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (74-93-105-186-washington.hfc.comcastbusiness.net [74.93.105.186]) by mail.messagingengine.com (Postfix) with ESMTPA id 2B71C103CF; Fri, 10 May 2019 12:14:17 -0400 (EDT) Subject: Re: perl path issue To: Prakash Ramakrishnan Cc: David Steele , "pgsql-generallists.postgresql.org" 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> From: Adrian Klaver Message-ID: <1e51499e-a684-66d8-b69e-0fa8777ab300@aklaver.com> Date: Fri, 10 May 2019 09:14:16 -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 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