public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ron Johnson <[email protected]>
To: Pgsql-admin <[email protected]>
Subject: Re: pg_basebackup --incremental
Date: Tue, 28 Oct 2025 13:52:08 -0400
Message-ID: <CANzqJaChB76pu0g9W0taQ9p0fX1Zyr++B70uexmMZZfRMiQZ3w@mail.gmail.com> (raw)
In-Reply-To: <CAN6TVjnoZo9p+SKTEUBhe+QGsf2tbwUEJ21fXfd3s9W-TJ5wRg@mail.gmail.com>
References: <CAN6TVjnoZo9p+SKTEUBhe+QGsf2tbwUEJ21fXfd3s9W-TJ5wRg@mail.gmail.com>
On Tue, Oct 28, 2025 at 1:43 PM Sam Stearns <[email protected]> wrote:
> 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_basebackup
> 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=full; pgbackrest backup --stanza=nfs --type=$Type &>
logs/pgbackrest_$(date +"\%F_\%T")_${Type}.log
15 01 * * 1-6 Type=incr; pgbackrest backup --stanza=nfs --type=$Type &>
logs/pgbackrest_$(date +"\%F_\%T")_${Type}.log
And this is my /etc/pgbackrest.conf:
[global]
repo1-path=/Database/backups/pgbackrest
repo1-cipher-type=aes-256-cbc
repo1-cipher-pass=<redacted>
repo1-bundle=y
repo1-bundle-limit=20MiB
repo1-bundle-size=200MiB
[nfs]
pg1-path=/Database/17/data
resume=n
start-fast=y
stop-auto=y
compress-type=zst
log-level-console=detail
log-level-file=info
log-path=/var/lib/pgsql/logs/pgbackrest
retention-full=4
process-max=<nproc * 3/4>
[nfs:archive-push]
compress-type=zst
--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pg_basebackup --incremental
In-Reply-To: <CANzqJaChB76pu0g9W0taQ9p0fX1Zyr++B70uexmMZZfRMiQZ3w@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox