Fix option warnings breaking async archive-get/archive-push.

An option warning in the async process was logged to a closed stdout, which made the process abort. Since the async role can now have different valid options than the default role, this happened more often. Option warnings are now logged only for the default role.

Fix memory leak in backup during archive copy.

Copying WAL into the backup with archive-copy leaked memory, especially when the WAL needed to be recompressed.

Fix stack overflow in cipher passphrase generation.

The buffer for the generated passphrase had no room for the terminating zero. This was found on arm64 with musl libc.

Fix repo-ls / on S3 repositories.

S3 reports / as a file without the expected headers, which caused an error. / is now reported as not existing on storage that does not support paths.

Multiple repository support.

Up to four repositories may be configured, e.g. a local repository for fast restores and a remote repository for redundancy. archive-push pushes WAL to all repositories, and backups are scheduled for each repository. Some commands work with all repositories, while others require repo. repo is not required when only repo1 is configured.

GCS support for repository storage.

Set repo-type=gcs to store the repository on GCS or a GCS-compatible object store.

Add archive-header-check option.

The WAL header is checked against the version and system identifier to make sure WAL is pushed to the correct stanza. The check is enabled by default and can be disabled when needed, e.g. for encrypted WAL.

Include recreated system databases during selective restore.

A system database (template0, template1, or postgres) that was recreated has an OID that makes it look like a user database. These databases are now always restored, whatever their OID.

Exclude content-length from S3 signed headers.

Some proxies modify the content-length header, which made authentication fail when it was signed.

Consolidate less commonly used repository storage options.

The S3 and Azure CA, host, port, and TLS verification options are renamed to repo-storage-*, e.g. repo1-s3-host is now repo1-storage-host. The old names are still accepted.

Allow custom config-path default with ./configure --with-configdir.

Packagers can set a different default for config-path when building. Without the option the default is still /etc/pgbackrest.

Log archive copy during backup.

Improve protocol handlers.

Add HttpUrl object.

Move configuration definition to src/build/config/config.yaml.

Improve storage drivers.

Improve the configure script.

Update help.auto.c missed in prior commits.

Clean up code and comments.

Update config.guess and config.sub to latest versions.

Update reference to include links to user guide examples.

The command reference now links to the user guide sections with examples, and some descriptions were clarified, e.g. set for expire.

Update selective restore documentation with caveats.

Recovery may fail unless type=immediate is specified, because reports zeroed pages as errors after consistency is reached. On >= 13 ignore_invalid_pages may be used, but check the logs for invalid pages in the selected databases.

Add compress-type clarification to archive-copy documentation.

WAL must be recompressed when archive-push and backup use a different compress-type, which can be expensive.

Add compress-level defaults per compress-type value.

The defaults are 9 for bz2, 6 for gz, 1 for lz4, and 3 for zst.

Add note about required NFS settings being the same as .

Fix option validity by role and make sections conform to C help.

Improve the documentation build and release notes.

Improve unit tests and test tools.