Archive Timeout Option (--archive-timeout)
Archive timeout.
Set maximum time, in seconds, to wait for WAL segments to reach the archive. The timeout applies to the check command and to the backup command when waiting for WAL segments required to make the backup consistent to be archived.
default: 60
allowed: 0.1-86400
example: archive-timeout=30
Buffer Size Option (--buffer-size)
Buffer size for file operations.
Set the buffer size used for copy, compress, and uncompress functions. A maximum of 3 buffers will be in use at a time per process. An additional maximum of 256K per process may be used for zlib buffers.
default: 4194304
allowed: 16384-8388608
example: buffer-size=32768
SSH client command Option (--cmd-ssh)
Path to ssh client executable.
Use a specific SSH client when an alternate is desired or the ssh executable is not in $PATH.
default: ssh
example: cmd-ssh=/usr/bin/ssh
Compress Option (--compress)
Use gzip file compression.
Backup files are compatible with command-line gzip tools.
default: y
example: compress=n
Compress Level Option (--compress-level)
Compression level for stored files.
Sets the zlib level to be used for file compression when compress=y.
default: 6
allowed: 0-9
example: compress-level=9
Network Compress Level Option (--compress-level-network)
Compression level for network transfer when compress=n.
Sets the zlib level to be used for protocol compression when compress=n and the database cluster is not on the same host as the backup. Protocol compression is used to reduce network traffic but can be disabled by setting compress-level-network=0. When compress=y the compress-level-network setting is ignored and compress-level is used instead so that the file is only compressed once. SSH compression is always disabled.
default: 3
allowed: 0-9
example: compress-level-network=1
Database Timeout Option (--db-timeout)
Database query timeout.
Sets the timeout, in seconds, for queries against the database. This includes the pg_start_backup() and pg_stop_backup() functions which can each take a substantial amount of time. Because of this the timeout should be kept high unless you know that these functions will return quickly (i.e. if you have set startfast=y and you know that the database cluster will not generate many WAL segments during the backup).
default: 1800
allowed: 0.1-604800
example: db-timeout=600
Lock Path Option (--lock-path)
Path where lock files are stored.
The lock path provides a location for pgBackRest to create lock files to prevent conflicting operations from being run concurrently.
default: /tmp/pgbackrest
example: lock-path=/backup/db/lock
Log Path Option (--log-path)
Path where log files are stored.
The log path provides a location for pgBackRest to store log files. Note that if log-level-file=none then no log path is required.
default: /var/log/pgbackrest
example: log-path=/backup/db/log
Neutral Umask Option (--neutral-umask)
Use a neutral umask.
Sets the umask to 0000 so modes in the repository are created in a sensible way. The default directory mode is 0750 and default file mode is 0640. The lock and log directories set the directory and file mode to 0770 and 0660 respectively.
To use the executing user's umask instead specify neutral-umask=n in the config file or --no-neutral-umask on the command line.
default: y
example: neutral-umask=n
Process Maximum Option (--process-max)
Max processes to use for compress/transfer.
Each process will perform compression and transfer to make the command run faster, but don't set process-max so high that it impacts database performance.
default: 1
allowed: 1-96
example: process-max=4
Protocol Timeout Option (--protocol-timeout)
Protocol timeout.
Sets the timeout, in seconds, that the master or remote process will wait for a new message to be received on the protocol layer. This prevents processes from waiting indefinitely for a message. The protocol-timeout option must be greater than the db-timeout option.
default: 1830
allowed: 0.1-604800
example: protocol-timeout=630
Repository Path Option (--repo-path)
Repository path where WAL segments and backups stored.
The repository is where pgBackRest stores backup and archives WAL segments.
If you are new to backup then it will be difficult to estimate in advance how much space you'll need. The best thing to do is take some backups then record the size of different types of backups (full/incr/diff) and measure the amount of WAL generated per day. This will give you a general idea of how much space you'll need, though of course requirements will likely change over time as your database evolves.
default: /var/lib/pgbackrest
example: repo-path=/backup/db/backrest
Spool Path Option (--spool-path)
Path where WAL segments are spooled during async archiving.
When asynchronous archiving is enabled pgBackRest needs a local directory to store WAL segments before they are compressed and moved to the repository. Depending on the volume of WAL generated this directory could become very large so be sure to plan accordingly.
The max-archive-mb option can be used to limit the amount of WAL that will be spooled locally.
default: /var/spool/pgbackrest
example: spool-path=/backup/db/spool