NOTE TO PACKAGERS: A new distribution tarball is available which simplifies the build process by providing pregenerated HTML documentation, man page, and code. The tarball is attached to each release as an asset and is named pgbackrest-{version}.tar.gz. See the README.md in the tarball for details. Please use the new distribution tarball to avoid the additional build tooling required to generate code in future releases. See New Distribution Tarball for more information.

NOTE TO PACKAGERS: There is a new optional dependency on libsystemd.

IMPORTANT NOTE: Starting with this release, only the restore command may be run as root by default. Use allow-root to run other commands as root (though this is not recommended).

Fix expire removing a backup in progress on another host.

A backup is not added to backup.info until it completes, so when expire ran on one host while a backup was running on another, e.g. expire on a standby while the primary is backed up, the backup in progress was removed. Expiration no longer removes the latest backup when it is in progress or resumable.

Fix archive-push-queue-max not enforced when a WAL file errors.

In asynchronous mode the queue was measured against the WAL yet to be pushed. When a WAL file errored repeatedly the WAL files after it were pushed and no longer counted, although they stayed in pg_wal, so the queue limit was never reached and pg_wal could fill the disk. The queue is now measured against all the WAL is waiting to archive, as in synchronous mode.

Fix async archive-get failure during recovery across a timeline switch.

Two async processes could race for the archive lock, and the one that lost exited before fetching the segment it was started for. The archive-get that started it then waited for archive-timeout and returned an error for a segment that exists, which could end recovery early, especially across a timeline switch. The segment is now fetched directly when the async process that should fetch it is not running.

Fix potential buffer overrun in error module.

A stack trace too long for its buffer was not terminated and could be read past the end of the buffer, and an error message too long for its buffer could write past the end of it when a system error was appended. Both require an unusually long message.

Fix use-after-free of parallel protocol client.

A client that ran out of work was freed but left in the client list and freed again on a later call. With debug or trace logging this read freed memory and could crash, e.g. a parallel backup with log-level-file=trace.

Fix heap overflow when a pg option is set without pg1.

When pg options were set for other indexes without pg1-path, e.g. pg2-path and pg3-path, the index map was overwritten. This corrupted the heap on musl, e.g. Alpine, and caused a segmentation fault. The highest numbered pg-path was also dropped.

Fix crash when a signal arrives during exit on musl 1.2.6.

musl 1.2.6, e.g. on Alpine 3.24, crashes when exit() is called while an exit is already in progress. This happened when a signal arrived during exit, e.g. when the server command terminated a child process that was already exiting. A signal that arrives during exit is now ignored.

PostgreSQL 19beta1/beta2 support.

Adds support for 19beta1/beta2. 19 can enable and disable page checksums online, and page checksums are not validated while either is in progress.

Add archive-expire-before option to clean up WAL archive.

The expire option archive-expire-before removes WAL before a given segment from the archive but never WAL that a retained backup requires. It can clean up the archive from the restartpoint of a standby with archive_cleanup_command instead of pg_archivecleanup, which does not know about retention.

Add batch delete for Azure storage.

Files are removed with the Azure Blob Batch API, up to 256 per request, instead of one request per file. This speeds up expire and other commands that remove files from the repository.

Add support for S3 Outposts.

Set repo-s3-service=s3-outposts when using an S3 Outposts endpoint. The option sets the service name used for request signing and defaults to s3.

Add S3 process authentication.

Set repo-s3-key-type=process and set repo-s3-process-cmd to a command that outputs temporary credentials in the JSON format of the AWS process credential provider. The credentials are refreshed before they expire.

Provide a distribution tarball with generated code and documentation.

The tarball includes the generated code and the rendered man page and HTML documentation, so it builds and installs without the code generation and documentation tooling, including libyaml.

Reconnect SFTP storage after the server drops an idle connection.

SFTP servers and firewalls may drop a connection that has been idle for a while, e.g. the repository read connection during the copy phase of a backup, and the next use failed with a socket error. A dropped connection is now reopened and the operation is retried once.

Add user/group caching for faster manifest build.

When user and group names are looked up through a remote name service, e.g. sssd or LDAP, each lookup is a round trip, which dominated the manifest build for clusters with millions of files. User and group names are now cached.

Add per-repo backup progress to info command output.

When backups run on more than one repository at once, the info command now reports progress for each repository as well as overall progress. The JSON output has a repo array for each backup lock.

Add backup.info checks to verify command.

The verify command now warns when a backup in the repository is not in backup.info and when a backup in backup.info is missing from the repository. A missing backup is reported as having a missing manifest.

Allow the S3 STS endpoint to be configured.

Set repo-s3-sts-host to use a regional STS endpoint with repo-s3-key-type=web-id, e.g. sts.eu-central-2.amazonaws.com. AWS opt-in regions do not accept credentials from the global endpoint, which is still the default.

Add archive-push-batch-size to limit WAL pushed per asynchronous run.

In asynchronous mode archive-push-queue-max is only checked at the start of a run, so a run working through a large backlog could let the queue grow well past the limit. archive-push-batch-size (default 16GiB) limits the WAL pushed per run, so the queue is checked again sooner.

Exit async archive-push on first error.

When the repository was unavailable the async process kept trying every ready WAL segment, so a run could take long enough for pg_wal to fill before archive-push-queue-max was checked again. The run now exits on the first error, after the jobs in progress finish.

Harden HTTP chunked response parsing.

Chunk extensions and trailers are now accepted, transfer-encoding is compared without regard to case, and a response with both transfer-encoding and content-length is rejected.

Error when running as root unless allow-root is enabled.

Running a command other than restore as root could create files in the repository, e.g. backup.info, that the user cannot access. allow-root is disabled by default for every command except restore, and the check also applies on remote hosts.

Fewer binary searches when building manifest.

The manifest build for a diff or incr backup searched the prior manifest three times for each file. It now searches once, which saves millions of searches for clusters with millions of files.

Improve seek performance during block incremental delta restore.

A seek and a flush of the write buffer were done for every block written during a block incremental delta restore, and blocks are often 8KiB. The file position is now tracked and the seek and flush are only done when needed.

Bundle backup files in order rather than scanning for a better fit.

A file that would push a bundle over repo-bundle-size was skipped for a smaller file later in the queue. Files are now added in order and a bundle is closed once it reaches repo-bundle-size, so a bundle may exceed it by up to repo-bundle-limit.

Report the underlying error when a query fails to complete.

When the connection was lost after the first result of a query was delivered, e.g. under load, the error was the generic NULL result required to complete request. The error from is now reported, with hints about a lost connection and about aggressive idle_session_timeout and idle_in_transaction_session_timeout settings.

Report the actual error when an S3 credential request fails.

An error from AWS for a web-id or pod-id credential request was reported as a failure to parse the response. The error returned by AWS is now reported, and the tokens are redacted when the request is logged.

Report archive-push spool path errors to the PostgreSQL log.

When the async spool path could not be created, e.g. permission was denied, the error could not be written to the spool and archive-push failed with a generic timeout that pointed at the async log. The spool path is now created before the async process starts, so the error appears in the log.

Hint that pgBackRest may be out of date when a version is unsupported.

When does not recognize a version, e.g. an older on the restore host reading a backup of a newer cluster, the error now hints that may need to be updated on all hosts. The version is reported in user-facing form, e.g. 13 rather than 130000.

Add systemd notify integration.

When built with libsystemd, the server command notifies systemd when it is ready to accept connections and when it is stopping, as and PgBouncer do.

Suppress unused parameter errors in meson compiler probes.

The meson compiler probes declared main() parameters they did not use, which failed the probes when unused parameter warnings were errors.

C11 is now the minimum C standard.

Refactor restore module into included modules.

Update LICENSE.txt and PostgreSQL copyright for 2026.

Enhance StringId with optional sequence information.

Refactor the storage read and write interfaces.

Improve error handling in the SFTP storage driver.

Refactor the manifest module into included modules.

Reverse sort order in backup and restore comparators.

Free memory sooner in restoreFile().

Move archiveAsyncExec() to command/command module and rename.

Ban unsafe string functions and limit an oversized log message.

Improve code generation for the configuration and help.

Improve compiler compatibility and build checks.

Clean up code and comments.

Make stanza option internal for the repo-* commands.

The stanza option only has an effect on the repo-* commands with undocumented storage path constants, so the documentation implied it did something it does not. The option is no longer documented for these commands and works as before.

Document that info reads encryption settings from global section.

When run without stanza the info command reads encryption settings only from the global section, so encryption settings configured for a stanza require stanza.

Document that expire-auto uses the backup command configuration.

Automatic expiration after a backup uses the configuration of the backup command, so options set only for the expire command are not applied. Disable expire-auto and run expire separately when it needs its own configuration.

Document adjusting the logrotate su directive for a dedicated user.

Packages may install a logrotate configuration that rotates the logs as the postgres user. When a dedicated user owns the repository and logs, the su directive must be changed to that user or rotation fails with a permission error.

Document that end-of-line comments are not supported in config files.

End-of-line comments have never been supported, although they may appear to work for some options. Only comments on a line of their own are supported.

Add the news page and sponsors to the website.

Update and correct the documentation.

Improve the documentation build.

Replace Minio with Ceph for S3 documentation and testing.

Fix Alpine group conflicts in CI containers.

Group entries with members are now handled when the test group is renamed, and the Alpine group is only created when it does not already exist.

CI updates.

Add a smoke test to verify a build against installed PostgreSQL.

Improve the test harness.

Improve unit tests.