mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
cded35791d
Allow timestamps to be suppressed in logging. This is primarily used to avoid filters in the automated documentation.
104 lines
4.1 KiB
Plaintext
104 lines
4.1 KiB
Plaintext
run 001 - base
|
|
==============
|
|
|
|
> [BACKREST-BIN] version
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[BACKREST-NAME-VERSION]
|
|
|
|
> [BACKREST-BIN] help
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[BACKREST-NAME-VERSION] - General help
|
|
|
|
Usage:
|
|
pgbackrest [options] [command]
|
|
|
|
Commands:
|
|
archive-get Get a WAL segment from the archive.
|
|
archive-push Push a WAL segment to the archive.
|
|
backup Backup a database cluster.
|
|
check Check the configuration.
|
|
expire Expire backups that exceed retention.
|
|
help Get help.
|
|
info Retrieve information about backups.
|
|
restore Restore a database cluster.
|
|
stanza-create Create the required stanza data.
|
|
start Allow pgBackRest processes to run.
|
|
stop Stop pgBackRest processes from running.
|
|
version Get version.
|
|
|
|
Use 'pgbackrest help [command]' for more information.
|
|
|
|
> [BACKREST-BIN] help version
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[BACKREST-NAME-VERSION] - 'version' command help
|
|
|
|
Get version.
|
|
|
|
Displays installed pgBackRest version.
|
|
|
|
> [BACKREST-BIN] help --output=json --stanza=main info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[BACKREST-NAME-VERSION] - 'info' command help
|
|
|
|
Retrieve information about backups.
|
|
|
|
The info command operates on a single stanza or all stanzas. Text output is the
|
|
default and gives a human-readable summary of backups for the stanza(s)
|
|
requested. This format is subject to change with any release.
|
|
|
|
For machine-readable output use --output=json. The JSON output contains far
|
|
more information than the text output, however this feature is currently
|
|
experimental so the format may change between versions.
|
|
|
|
Command Options:
|
|
|
|
--backup-cmd pgBackRest exe path on the backup host
|
|
[default=[BACKREST-BIN]]
|
|
--backup-config pgBackRest backup host configuration file
|
|
[default=/etc/pgbackrest.conf]
|
|
--backup-host backup host when operating remotely via SSH
|
|
--backup-user backup host user when backup-host is set
|
|
[default=backrest]
|
|
--output output format [current=json, default=text]
|
|
|
|
General Options:
|
|
|
|
--buffer-size buffer size for file operations [default=4194304]
|
|
--cmd-ssh path to ssh client executable [default=ssh]
|
|
--compress-level compression level for stored files [default=6]
|
|
--compress-level-network compression level for network transfer when
|
|
compress=n [default=3]
|
|
--config pgBackRest configuration file
|
|
[default=/etc/pgbackrest.conf]
|
|
--lock-path path where lock files are stored
|
|
[default=/tmp/pgbackrest]
|
|
--log-path path where log files are stored
|
|
[default=/var/log/pgbackrest]
|
|
--protocol-timeout protocol timeout [default=1830]
|
|
--repo-path repository path where WAL segments and backups
|
|
stored [default=/var/lib/pgbackrest]
|
|
--stanza defines a stanza [current=main]
|
|
|
|
Log Options:
|
|
|
|
--log-level-console level for console logging [default=warn]
|
|
--log-level-file level for file logging [default=info]
|
|
--log-level-stderr level for stderr logging [default=warn]
|
|
--log-timestamp enable timestamp in logging [default=y]
|
|
|
|
Use 'pgbackrest help info [option]' for more information.
|
|
|
|
> [BACKREST-BIN] help --output=json --stanza=main info output
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[BACKREST-NAME-VERSION] - 'info' command - 'output' option help
|
|
|
|
Output format.
|
|
|
|
The following output types are supported:
|
|
|
|
* text - Human-readable summary of backup information.
|
|
* json - Exhaustive machine-readable backup information in JSON format.
|
|
|
|
current: json
|
|
default: text
|