postgresql_16:9.6.5 basebackup_to_shell — example "shell" pg_basebackup module
PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > basebackup_to_shell — example "shell" pg_basebackup module
basebackup_to_shell adds a custom basebackup target called shell. This makes it possible to run pg_basebackup --target=shell or, depending on how this module is configured, pg_basebackup --target=shell:*DETAIL_STRING*, and cause a server command chosen by the server administrator to be executed for each tar archive generated by the backup process. The command will receive the contents of the archive via standard input.
This module is primarily intended as an example of how to create a new backup targets via an extension module, but in some scenarios it may be useful for its own sake. In order to function, this module must be loaded via (see guc-shared-preload-libraries) or (see guc-local-preload-libraries).
Subsections
- postgresql_16:9.6.5.1 Configuration Parameters
- postgresql_16:9.6.5.2 Author