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 1vDnru-00GXaC-KU for pgsql-admin@arkaria.postgresql.org; Tue, 28 Oct 2025 17:52:26 +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 1vDnrt-00EKXb-Fo for pgsql-admin@arkaria.postgresql.org; Tue, 28 Oct 2025 17:52:24 +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 1vDnrt-00EKXT-4i for pgsql-admin@lists.postgresql.org; Tue, 28 Oct 2025 17:52:24 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vDnrp-004jvp-3A for pgsql-admin@lists.postgresql.org; Tue, 28 Oct 2025 17:52:23 +0000 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-7c531445439so1225662a34.0 for ; Tue, 28 Oct 2025 10:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761673939; x=1762278739; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Bu7Ta/8JfQpZ7n/t4h9hUddL3zXs1eoxRYJm0y90SQI=; b=Kbb1lp7mWlGO7pd+FSAgxg/CkxLMLQ7JLW3jpoHnF2cq8pLqjiDIf0xeS5baiURCve alxGZD2LlTjSxThfuDzFY1wKESIwvnbGCb3LnxtVqN67hi2wt2U65uQFS2Ezp7awg/mS PQxyPoTIe5a0dJnbbAqg+V8iA1st37vn4qM6rDI1H66PQu2ytlu6lzIQMtCPWLcXyFHv DN/wI/A7ET5OE7inrZY6prUpR83p9N8KNg1butck3VPUvvfdoZ/1p9i8RMMkZkmByfpJ VqPql3lVnwg1wwmwY0yd8XQLWPmLyO8AJMbl4pTVGhXzbUjNKs+OE4PjodhGGG4PGyQU ftlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761673939; x=1762278739; h=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=Bu7Ta/8JfQpZ7n/t4h9hUddL3zXs1eoxRYJm0y90SQI=; b=lVwa5CSciL4IdIvvfPMHqqMA5NjqD13FPnokNtmX/NLqfyuH5u9Wkk6M40Hoq3FNCA fwmjJN3fsnc1yyCwCwl8Vqxqf3MDWvOvE6NWRnAQmQFFLNUMTpdW8BkanFU0izvsv7Oa 6xYcJpbKox6gWS1f1m5cYlz/zilAQ+CF1Mam1zDuO39GwgLry3+eQFWddsZIMtlgABZH VLCaKzcn5/j5zNLZZ9mDsqisxt0a9sDK5mXSUqU7zKS+ZOAlyCrf9IFF1FWhuwqpld26 KfUyXN66SR8D42o+2AlEuPd7ll0omY2nlO3bOUIhvyGe7MroFWffguxPc65TTbu/wfKW HK3A== X-Gm-Message-State: AOJu0YyRhE8QCc0EtAOl/9btNvCuIVGj8KZ9jXlkTkhePYg/VDA9E/Rd 3faDrL5c2hrGum3O3PVQoJVJzujGGpocpIQ7i8klH7YSqf/d0ky+ft6SsNsf52xwDJYRBWNetaq 5I+B8JqQb6HTqUGIf/hCatNU3CLPAzzERaa5k X-Gm-Gg: ASbGnctUAQHdsmCqGUnoylaY7e8rY+UiLxUO1mKB82XNF3oZURWeNIZP5Ig2ldJQdcH ePFfdzkppU5Ao5PAuNr7KboGyICtglE8sCxW++nA741DgLYBlR1Ggw1zLG6jrYDANcer+pTIaIy t2SHhXbTDixxVaVcQ4dupDacTahltm8yLPYe8vrK5IsbyLB3VBxTJe0jby0LRfr+yvFCOlj+TDw pRJeXdg/a2Z2KNwCnJUnCs6y93A7pjAZiG65SrFHn5RqKpLyFmL6TRHSfe0Ig== X-Google-Smtp-Source: AGHT+IGDw3n+5sxFmeMbaoRQVY6u7gjJa09h3tKK+0OZxvPtT29Zn96/Sc9bOQyMjS8uwA5cB3mEuTfJtT2pXOs3EIA= X-Received: by 2002:a05:6808:2f0e:b0:43f:7dee:468b with SMTP id 5614622812f47-44f7a75b104mr124907b6e.4.1761673939246; Tue, 28 Oct 2025 10:52:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Tue, 28 Oct 2025 13:52:08 -0400 X-Gm-Features: AWmQ_bnPhWrd9frLMZOkcPiYXQQkEakycO6vvgE3ft608Nd-zRrfycP3E0pTftw Message-ID: Subject: Re: pg_basebackup --incremental To: Pgsql-admin Content-Type: multipart/alternative; boundary="0000000000005be08806423bad37" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005be08806423bad37 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Oct 28, 2025 at 1:43=E2=80=AFPM Sam Stearns w= rote: > Howdy, > > We're running version 17.6. Would anyone be able to point me to, or > provide, some sample use cases / scripts / usage to deploy a pg_basebacku= p > full + --incremental strategy as a backup solution, please? > The question confuses me a bit (though maybe because weekly "full", and remainder "incremental" is pretty standard). PgBackRest really is quite simple and easy to configure if you back up to a local mount point (even when that mount point is NFS). This is in the "postgres" crontab: 15 01 * * Sun Type=3Dfull; pgbackrest backup --stanza=3Dnfs --type=3D$Type = &> logs/pgbackrest_$(date +"\%F_\%T")_${Type}.log 15 01 * * 1-6 Type=3Dincr; pgbackrest backup --stanza=3Dnfs --type=3D$Type = &> logs/pgbackrest_$(date +"\%F_\%T")_${Type}.log And this is my /etc/pgbackrest.conf: [global] repo1-path=3D/Database/backups/pgbackrest repo1-cipher-type=3Daes-256-cbc repo1-cipher-pass=3D repo1-bundle=3Dy repo1-bundle-limit=3D20MiB repo1-bundle-size=3D200MiB [nfs] pg1-path=3D/Database/17/data resume=3Dn start-fast=3Dy stop-auto=3Dy compress-type=3Dzst log-level-console=3Ddetail log-level-file=3Dinfo log-path=3D/var/lib/pgsql/logs/pgbackrest retention-full=3D4 process-max=3D [nfs:archive-push] compress-type=3Dzst --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000005be08806423bad37 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Oct 28, 2025 at 1:43=E2=80=AFPM S= am Stearns <sam.stearns@dat.com> wrote:
--0000000000005be08806423bad37--