Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sU4Yj-000Dn9-8X for pgsql-general@arkaria.postgresql.org; Wed, 17 Jul 2024 13:19:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sU4Xj-000Zmh-33 for pgsql-general@arkaria.postgresql.org; Wed, 17 Jul 2024 13:18:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sU4Xi-000ZmU-Mn for pgsql-general@lists.postgresql.org; Wed, 17 Jul 2024 13:18:03 +0000 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sU4Xf-0001Gy-Fq for pgsql-general@postgresql.org; Wed, 17 Jul 2024 13:18:02 +0000 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-643f3130ed1so61325347b3.2 for ; Wed, 17 Jul 2024 06:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721222277; x=1721827077; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hynoWJ0579qTvhx8qgbNKbcVcUyXBjxESEy+aB0Th9k=; b=IZY4amgWn+wIckFsI8hii4KqkcshKKqXUqv+5NZlM0WfOVEGTy5GCEXoCTxD9Jd5h1 4SDhmT9O2sIBpqLkW2dClrLiUsPF2nem9ORqxPO1q0MRGG85WgvnVtY7N7u4kNCHAb/b dwyqiCPAdp5aeuseQGMJ1wJ12ybn0+xAYGRVbfrPqseeFwmMIzGoBWKyhjt3aZHU+Ubb doL1gKWQ290Ds8+WCCzFleZHe/fvtXMudUrjKHk6lcEQzv/2n9inD9vLSZPkUwlA5Vtt QKh8QW0HiIbpR5LCDH3Uqkk0tYFJw02gsNxWDvS8UOyvUa02PvDj9nRucdRhSioF93r3 F3zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721222277; x=1721827077; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hynoWJ0579qTvhx8qgbNKbcVcUyXBjxESEy+aB0Th9k=; b=rqYIUuVj0+dPotrF/e951j4o1Bx+YlU/xsgjmTZnhOlvXsZXMiUcYaUZvK82ct1vHj rPP0zoKQFRVRSl6NPKv/8Tp4MBXRWGDnNdUdfZHg0U8LQXDA6lnmdu2AMbTeIjA1C6rr 7P7GukgtlJ7zFE/8cBJOjCnFj2HCbmf0FURsun26i87jY84I1gxjd1qtT056fP40Otlj bS5FKoZA3+kJlYwWDUqUSIPvcGVWb386zzWLNz2mRICi3I0AbVy0g0+EtpfolluzZFUh 0WHJzlRUrS5/Y+GTBJNuZV22086Ox9VMQ2nAdHZIrH39FoZjRkxOf4eOLHp4xTR5ev3S VbJw== X-Gm-Message-State: AOJu0Yw/5v09me+AKDvtC00okhTiUE8QsYYvdCW+u23TCYXHQCR2qUtO kSe0xct1FkezpfpY3y/pHRK1Eja3aBWByv8AVsho7Ig1vI9Znyri6qgrimqSdhhJdDb1nved36i 0MkHkVcKUvSqSkUcYAoOddooMPwA= X-Google-Smtp-Source: AGHT+IGqNMUhhOsm+n1Y0uOAblNHRoPBVX7/kYg/Kimt///O2CgPWfMKMQ31HGGNjdGkv4Yuz49xVrskIm0fV7dZyTM= X-Received: by 2002:a05:690c:4985:b0:651:6e6f:32d2 with SMTP id 00721157ae682-6650057415cmr20575827b3.43.1721222277523; Wed, 17 Jul 2024 06:17:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: azeem subhani Date: Wed, 17 Jul 2024 18:17:44 +0500 Message-ID: Subject: Re: PgbackRest and EDB Query To: KK CHN Cc: pgsql-general Content-Type: multipart/alternative; boundary="0000000000006e6e33061d714abd" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006e6e33061d714abd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Your query: 1. Is it possible to use PgBackrest with EnterpriseDB(EDB -16) for the backup and recovery process? Or pgback works only with the community PostgreSQL database ? Answer: Yes, you can use pgBackRest with EPAS-16 (EDB Postgres Advanced Server); it is fully supported. You can find two use cases provided on the EDB official documentation website, detailing both scenarios: pgBackRest running locally or on a dedicated remote server. The following links are given for more information: https://www.enterprisedb.com/docs/supported-open-source/pgbackrest/ https://www.enterprisedb.com/docs/supported-open-source/pgbackrest/06-use_c= ase_1/ On Wed, Jul 17, 2024 at 5:21=E2=80=AFPM KK CHN wrote: > Hi , > > I am trying pgbackrest(2.52.1) with postgresql( version 16) on a lab > setup on RHEL-9. Both PostgreSQL server and a remote Repository host > configured with pgbackrest and everything working fine as specified in th= e > documentation. > > note: here I am running postgres server and pgbackrest everything as > postgres user and no issues in backup and recovery. > > > > Query > 1. Is it possible to use PgBackrest with EnterpriseDB(EDB -16) for the > backup and recovery process? Or pgback works only with the community > PostgreSQL database ? > > > [ when I ran initdb script of EDB while installing EDB it creates the > enterpisedb as user and edb as initial database by the script. ] > > > when I try to create the stanza on the EDB server it throws error (paste= d > at bottom ). > > > > NOTE: > I know that my EDB running on port 5444 instead of 5432 and the dbnam= e > =3D edb instead of postgres, and user as enterpisedb instead of postgres= how > to specify these changes in the stanza creation step if EDB Supports > pgbackrest tool ? > > OR Am I doing a waste exercise [if pgbackrest won't go ahead with EDB = ] > ? > > > Any hints much appreciated. > > Thank you, > Krishane > > > ERROR: > root@uaterssdrservice01 ~]# sudo -u postgres pgbackrest --stanza=3DOD_DM2 > --log-level-console=3Dinfo stanza-create > 2024-07-17 17:42:13.935 P00 INFO: stanza-create command begin 2.52.1: > --exec-id=3D1301876-7e055256 --log-level-console=3Dinfo --log-level-file= =3Ddebug > --pg1-path=3D/var/lib/pgsql/16/data --repo1-host=3D10.x.y.7 > --repo1-host-user=3Dpostgres --stanza=3DOD_DM2 > WARN: unable to check pg1: [DbConnectError] unable to connect to > 'dbname=3D'postgres' port=3D5432': connection to server on socket > "/tmp/.s.PGSQL.5432" failed: No such file or directory > Is the server running locally and accepting connections on that > socket? > ERROR: [056]: unable to find primary cluster - cannot proceed > HINT: are all available clusters in recovery? > 2024-07-17 17:42:13.936 P00 INFO: stanza-create command end: aborted > with exception [056] > [root@uaterssdrservice01 ~]# > > > > > --=20 Thanks Azeem Subhani --0000000000006e6e33061d714abd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Your query:
1. Is it possible to use=C2=A0 PgBackrest with=C2=A0 EnterpriseDB(EDB -16) = for the backup and recovery process?=C2=A0Or pgback works only with the community= =C2=A0=20 PostgreSQL database ?

Answer: Yes, you can us= e pgBackRest with EPAS-16 (EDB Postgres Advanced Server); it is fully suppo= rted. You can find two use cases provided on the EDB official documentation= website, detailing both scenarios: pgBackRest running locally or on a dedi= cated remote server. The following links are given for more information:



On Wed, Jul 17, 2024 at 5:21=E2=80=AFPM KK CHN <kkchn.in@gmail.com> wrote:
Hi ,=C2=A0

<= /div>
I am trying pgbackrest(2.52.1)=C2=A0 with postgresql( version 16)= =C2=A0 on=C2=A0 a lab setup on=C2=A0RHEL-9. Both=C2=A0 PostgreSQL server an= d a remote Repository host configured with pgbackrest and everything=C2=A0w= orking fine as specified in the documentation.=C2=A0=C2=A0

note:=C2=A0 here I am running postgres server and pgbackrest every= thing as postgres user and no issues in=C2=A0 backup and recovery.=C2=A0



Query
1. Is = it possible to use=C2=A0 PgBackrest with=C2=A0 EnterpriseDB(EDB -16) for th= e backup and recovery process?=C2=A0Or pgback works only with the community= =C2=A0 PostgreSQL database ?


[ when= I ran=C2=A0 initdb script of EDB while installing EDB it creates the enter= pisedb=C2=A0 as user and edb as initial=C2=A0 database by the script. ]
=


when I try to create the stanza on= the EDB server it throws error=C2=A0 (pasted at bottom ).



NOTE:=C2=A0
I know that=C2= =A0 my EDB=C2=A0 running on=C2=A0 port 5444 instead of=C2=A0 5432 and the d= bname =3D edb instead of postgres, and user as=C2=A0 enterpisedb instead of= postgres how to specify these changes in the stanza creation step if=C2=A0= EDB Supports pgbackrest tool ?=C2=A0 =C2=A0

OR=C2= =A0 =C2=A0Am I doing a waste exercise=C2=A0 [if pgbackrest won't go ahe= ad with EDB ] ?


Any hints much appr= eciated.=C2=A0

Thank you,
Krishane
=


ERROR:
root@uaterssdrservice01= ~]# sudo -u postgres pgbackrest --stanza=3DOD_DM2 --log-level-console=3Din= fo =C2=A0stanza-create
2024-07-17 17:42:13.935 P00 =C2=A0 INFO: stanza-c= reate command begin 2.52.1: --exec-id=3D1301876-7e055256 --log-level-consol= e=3Dinfo --log-level-file=3Ddebug --pg1-path=3D/var/lib/pgsql/16/data --rep= o1-host=3D10.x.y.7 --repo1-host-user=3Dpostgres --stanza=3DOD_DM2
WARN: = unable to check pg1: [DbConnectError] unable to connect to 'dbname=3D&#= 39;postgres' port=3D5432': connection to server on socket "/tm= p/.s.PGSQL.5432" failed: No such file or directory
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 Is the server running locally and accepting connections on th= at socket?
ERROR: [056]: unable to find primary cluster - cannot proceed=
=C2=A0 =C2=A0 =C2=A0 =C2=A0HINT: are all available clusters in recovery= ?
2024-07-17 17:42:13.936 P00 =C2=A0 INFO: stanza-create command end: ab= orted with exception [056]
[root@uaterssdrservice01 ~]#





--
Thanks
Azeem Subhani
--0000000000006e6e33061d714abd--