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 1sjIwZ-00H9Rc-V2 for pgsql-general@arkaria.postgresql.org; Wed, 28 Aug 2024 13:42:40 +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 1sjIwY-005F9N-4T for pgsql-general@arkaria.postgresql.org; Wed, 28 Aug 2024 13:42:38 +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 1sjIwX-005F9F-Pi for pgsql-general@lists.postgresql.org; Wed, 28 Aug 2024 13:42:38 +0000 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sjIwU-001vZ5-HG for pgsql-general@postgresql.org; Wed, 28 Aug 2024 13:42:37 +0000 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-6c49c9018ebso60061427b3.3 for ; Wed, 28 Aug 2024 06:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724852554; x=1725457354; 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=jtkvS71nS/rzTrqGtjOen8RRaRy9vLulXtbcJeCHV+Y=; b=BSTHOd7xL+zdmsGum827d9CEd99jEavOmF9La9Zz0FsGMGICPnkkr2YXcxG/D6C65c didVasohsK+pK47qauD/TNbfjkmUh+maMJONuxuKGzirkx6uZhYqfEggJpHbmTqomN0P sMcLEIPTjc81wStKP/+33fHyJ5iZ87Mi1gx1O/jBvuif/mpegCgdx61XHOOpzi8v/SGe X7UPXZoztfX/+z2ggvmQUsrORcuLMMxsmXqQdqg7uOWOQ4JZJwGpUcndNPlOWoJllO5y srwZK2abK7gPoRZ3lv/E74WoQrSPy3L3MMF4ZntQ4YBbreWAocj2THBJqx3Mc5u4COeM Dhuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724852554; x=1725457354; 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=jtkvS71nS/rzTrqGtjOen8RRaRy9vLulXtbcJeCHV+Y=; b=C9ackHOcHYyRkdhZhVMPIHzV8E5sDQxKw9jyq+cwvnDlRaJsmIagH4xzovgHBi8cl6 sgphIFhWLktLhIXDDTOUQBYuepzUkXkBtJMwmqQ6Is9gf0zzpNzdPDA+jGkmMUDVI2Rs UZUhjInffHFgaPv+Lp20ifJk/P6yhLl3HU/K2FE9yzBWqyOhN5sOwKzQR3UVfqIAkIbH 2e+EpFxhfdJYCqxKNsPbEJEzQQJQML1SIIjaj1r6RD78kOq+bjYFeBUl/NAypf8pzWe4 3K+kfVEGr0+iSArmX5u0GjBqwbruW02dr22nqHeDQSG9gzIjaA1pN19p6Cl35xVFx9xz qsTQ== X-Gm-Message-State: AOJu0YywYP9Sm7Osb4yD+wrecsRrMC4d1+3l0vkbbCeVfXu/X189V13L 4TaRBlYFMFmDEbkgtcsJs+mVHDvRHmlzu/Un6Sz985ufaDB3Nyw5nMbL2JsIYOAPb8xMMnuuwcV UbubRDqiZ/FSaBxb0JbiqJHd/esHteQ== X-Google-Smtp-Source: AGHT+IFegbQKN1Gi4QoPzJDbgYfbazdZhpWY8JSg9PrgMcM+aoSsDO+9AnVksnqVofmrkpONklRK+Vxeg3k+pkE1An0= X-Received: by 2002:a05:690c:f8a:b0:61b:1e81:4eb8 with SMTP id 00721157ae682-6d16f856527mr18476707b3.9.1724852554106; Wed, 28 Aug 2024 06:42:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: KK CHN Date: Wed, 28 Aug 2024 19:12:42 +0530 Message-ID: Subject: Re: Pgbackrest specifying the default DB necessary/correct way ? To: Greg Sabino Mullane Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000c715670620be87cf" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c715670620be87cf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Very helpful. On Wed, Aug 28, 2024 at 5:51=E2=80=AFPM Greg Sabino Mullane wrote: > On Wed, Aug 28, 2024 at 1:39=E2=80=AFAM KK CHN wrote= : > >> In this DB server I have other databases than the default "edb" >> database. Specifying the above line as pg1-database=3Dedb // I = am >> not sure this line is necessary or not ? >> > > The pgbackrest process needs to connect to the database, which means it > needs a user and database. You need this variable if you do not have the > default database, "postgres". If you have a database named postgres, you > can leave this out. Otherwise, yes, it is necessary. > > pg1-database=3Dedb // specifying like this, will it block other database= s >> on this server to get backed up ? IF yes how can I overcome this ? >> > > pgBackRest works on a cluster level, so *all* the databases are backed up= . > Indeed, it is not possible to only backup some of the databases. It's the > whole cluster. > > ( I am just learning and exploring PgbackRest) found online some >> reference configurations so using like this ) > > > Probably best to stick to the official docs; this section in particular i= s > worth a read: > > https://pgbackrest.org/user-guide-rhel.html > > Cheers, > Greg > > > --000000000000c715670620be87cf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Very helpful.=C2=A0

On Wed, Aug 28, 2024 at 5:51=E2=80= =AFPM Greg Sabino Mullane <htamfid= s@gmail.com> wrote:
On Wed, Aug 28, 2024 at 1:39= =E2=80=AFAM KK CHN <kkchn.in@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
In t= his DB server=C2=A0 =C2=A0 I have other databases=C2=A0 than the default=C2= =A0 "edb" database.=C2=A0 =C2=A0 =C2=A0Specifying the above line = as=C2=A0 =C2=A0 pg1-database=3Dedb=C2=A0 =C2=A0// I am not sure this line i= s necessary=C2=A0 or not ?

= The pgbackrest process needs to connect to the database, which means it nee= ds a user and database. You need this variable if you do not have the defau= lt database, "postgres". If you have a database named postgres, y= ou can leave this out. Otherwise, yes, it is necessary.

= =C2=A0pg1-database=3Dedb // specifying like this, will it block other datab= ases=C2=A0 on this server to get backed up ?=C2=A0 =C2=A0IF yes how can I o= vercome this ?

pgBackRest works= on a cluster level, so *all* the databases are backed up. Indeed, it is no= t possible to only backup some of the databases. It's the whole cluster= .

=C2= =A0( I am just learning and exploring PgbackRest)=C2=A0 found online some r= eference configurations so using like this )

Probably best to stick to the official docs; this section in particular i= s worth a read:


Cheers,
Greg
=

--000000000000c715670620be87cf--