Server Ping Command (server-ping)
server-ping command options and behavior.Ping a pgBackRest TLS server to check whether it accepts connections. This checks availability only; it does not attempt authentication.
If the command line does not specify a host, use tls-server-host.
Command Options
TLS Server Address Option (--tls-server-address)
TLS server address.
Set the IP address on which the server accepts client requests.
TLS Server Port Option (--tls-server-port)
TLS server port.
Set the port on which the server accepts client requests.
General Options
Allow Run as Root Option (--allow-root)
Allow the command to run as the root user.
By default, only restore can run as root because it manages file ownership. Other commands can create root-owned files, for example in the repository. The PostgreSQL user cannot access these files, which causes later commands to fail.
Enable this option to run another command as root. Preferably, run pgBackRest as the user that owns the repository and PostgreSQL cluster.
Buffer Size Option (--buffer-size)
Buffer size for I/O operations.
Set the buffer size for copy, compression, encryption, and other operations. Options determine the number of buffers. Each operation can also use more memory. For example, gz compression can use an additional 256KiB.
Allowed values are 16KiB, 32KiB, 64KiB, 128KiB, 256KiB, 512KiB, 1MiB, 2MiB, 4MiB, 8MiB, and 16MiB.
Config Option (--config)
pgBackRest configuration file.
Use this option to select a configuration file other than the default.
Config Include Path Option (--config-include-path)
Path to additional pgBackRest configuration files.
pgBackRest combines files with the .conf extension in this location with its configuration file. The result is one configuration file.
Config Path Option (--config-path)
Base path of pgBackRest configuration files.
Set the default base path for --config and --config-include-path. Explicit command-line values for these options override this setting.
For example, specify only --config-path=/conf/pgbackrest to set the --config default to /conf/pgbackrest/pgbackrest.conf. This also sets the --config-include-path default to /conf/pgbackrest/conf.d.
I/O Timeout Option (--io-timeout)
I/O timeout.
Set the connection and read/write timeout in seconds.
The complete read/write operation can take longer than this timeout. However, it must make some progress before the timeout, even if only one byte.
Set Process Priority Option (--priority)
Set process priority.
Set the process priority, or niceness, used by the kernel scheduler. Positive values decrease priority. Negative values increase priority. Processes usually lack permission to increase their priority.
Keep Alive Option (--sck-keep-alive)
Keep-alive enable.
Enables keep-alive messages on socket connections.
Keep Alive Count Option (--tcp-keep-alive-count)
Keep-alive count.
Set how many TCP keep-alive messages can be lost before the connection is considered dead.
This option is available on systems that support the TCP_KEEPCNT socket option.
Keep Alive Idle Option (--tcp-keep-alive-idle)
Keep-alive idle time.
Set how many seconds of network inactivity must pass before the operating system sends a TCP keep-alive message.
This option is available on systems that support the TCP_KEEPIDLE socket option.
Keep Alive Interval Option (--tcp-keep-alive-interval)
Keep-alive interval time.
Set how many seconds to wait before retransmitting a TCP keep-alive message that has no acknowledgement.
This option is available on systems that support the TCP_KEEPINTVL socket option.
TLSv1.2 cipher suites Option (--tls-cipher-12)
Allowed TLSv1.2 cipher suites.
All TLS connections between the pgBackRest client and server use encryption. Connections to object stores, such as S3, also use encryption by default.
NOTE: The absolute minimum security level for any transport connection is TLSv1.2.
Change the accepted cipher suites if necessary. The example is suitable unless you have specific security requirements. By default, this option is unset and the underlying OpenSSL library default applies.
TLSv1.3 cipher suites Option (--tls-cipher-13)
Allowed TLSv1.3 cipher suites.
All TLS connections between the pgBackRest client and server use encryption. Connections to object stores, such as S3, also use encryption by default.
NOTE: The absolute minimum security level for any transport connection is TLSv1.2.
Change the accepted cipher suites if necessary. By default, this option is unset and the underlying OpenSSL library default applies.
Log Options
Console Log Level Option (--log-level-console)
Level for console logging.
The following log levels are supported:
off- No logging at all (not recommended)error- Log only errorswarn- Log warnings and errorsinfo- Log info, warnings, and errorsdetail- Log detail, info, warnings, and errorsdebug- Log debug, detail, info, warnings, and errorstrace- Log trace (very verbose debugging), debug, info, warnings, and errors
File Log Level Option (--log-level-file)
Level for file logging.
The following log levels are supported:
off- No logging at all (not recommended)error- Log only errorswarn- Log warnings and errorsinfo- Log info, warnings, and errorsdetail- Log detail, info, warnings, and errorsdebug- Log debug, detail, info, warnings, and errorstrace- Log trace (very verbose debugging), debug, info, warnings, and errors
Std Error Log Level Option (--log-level-stderr)
Level for stderr logging.
Select the log levels that write to stderr instead of stdout, which log-level-console controls. Output to stderr excludes the timestamp and process.
The following log levels are supported:
off- No logging at all (not recommended)error- Log only errorswarn- Log warnings and errorsinfo- Log info, warnings, and errorsdetail- Log detail, info, warnings, and errorsdebug- Log debug, detail, info, warnings, and errorstrace- Log trace (very verbose debugging), debug, info, warnings, and errors
Log Path Option (--log-path)
Path where log files are stored.
pgBackRest stores log files in this path. If log-level-file=off, no log path is necessary.
Log Timestamp Option (--log-timestamp)
Enable timestamp in logging.
Include timestamps in console and file logs. Disable this option for special uses, such as documentation generation.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)