Command line example: --stanza=demo Configuration file example: repo1-cipher-pass=zWaf6XtpjIVZC5444yXB...
Command line example: --repo1-path=/var/lib/pgbackrest Configuration file example: repo1-path=/var/lib/pgbackrest
Command line examples: --start-fast, --no-start-fast, --start-fast=y, --start-fast=n Configuration file examples: start-fast=y, start-fast=n
Command line example: --compress-level=3 Configuration file example: pg1-port=5432
Command line example: --archive-get-queue-max=1GiB Configuration file example: buffer-size=2MiB
Command line example: --io-timeout=90 Configuration file example: db-timeout=600
Command line example: --db-exclude=db1 --db-exclude=db2 --db-exclude=db5
Configuration file example, each on its own line:
db-exclude=db1
db-exclude=db2
db-exclude=db5
Command line example: --tablespace-map=ts_01=/db/ts_01 --tablespace-map=ts_02=/db/ts_02
Configuration file example, each on its own line:
tablespace-map=ts_01=/db/ts_01
tablespace-map=ts_02=/db/ts_02
commands: archive-get, archive-push default: n example: archive-async=y
commands: archive-get default: 128MiB allowed: [0B, 4PiB] example: archive-get-queue-max=1GiB
commands: archive-get default: y example: archive-missing-retry=n
commands: archive-push default: 16GiB allowed: [1MiB, 4PiB] example: archive-push-batch-size=1GiB
commands: archive-push allowed: [0B, 4PiB] example: archive-push-queue-max=1TiB
commands: archive-get, archive-push, backup, check default: 1m allowed: [100ms, 1d] example: archive-timeout=30
commands: annotate, backup example: annotation=source="Sunday backup for website database"
commands: archive-push, backup, check valid with (backup): online=y default: y example: archive-check=n
commands: backup valid with: archive-check=y default: n example: archive-copy=y
commands: archive-push, backup, check valid with: archive-check=y default: y example: archive-mode-check=n
commands: backup, check default: n example: backup-standby=y
commands: backup example: checksum-page=n
commands: backup example: exclude=junk/
commands: backup default: y example: expire-auto=y
commands: backup default: 1GiB allowed: [1B, 1TiB] example: manifest-save-threshold=8GiB
commands: backup default: y example: resume=n
commands: backup default: n example: start-fast=y
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, start, stop, verify
default: n
default (restore): y
example: allow-root=y
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
default: 1MiB
example: buffer-size=2MiB
commands: backup, expire, restore default (backup): n default (expire, restore): y example: checksum-page-error=n
commands: archive-get, archive-push, backup, restore, verify default: [path of executed pgbackrest binary] example: cmd=/var/lib/pgsql/bin/pgbackrest_wrapper.sh
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
default: ssh
example: cmd-ssh=/usr/bin/ssh
commands: archive-push, backup default: y example: compress=n
commands: archive-push, backup
valid with: compress-type in (bz2, gz, lz4, zst)
default (depending on compress-type):
bz2 - 9
gz - 6
lz4 - 1
zst - 3
allow range (depending on compress-type):
bz2 - [1, 9]
gz - [-1, 9]
lz4 - [-5, 12]
zst - [-7, 22]
example: compress-level=9
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
default: 1
allowed: [-5, 12]
example: compress-level-network=1
commands: archive-push, backup default: gz example: compress-type=none
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade default: 30m allowed: [100ms, 7d] example: db-timeout=600
commands: backup, restore default: n example: delta=y
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
default: 1m
allowed: [100ms, 1h]
example: io-timeout=120
commands: annotate, archive-get, archive-push, backup, expire, info, restore,
stanza-create, stanza-delete, stanza-upgrade, start, stop
default: /tmp/pgbackrest
example: lock-path=/backup/db/lock
commands: annotate, archive-get, archive-push, backup, check, expire, repo-get,
repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade, start, stop,
verify
default: y
example: neutral-umask=n
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, start, stop, verify
allowed: [-20, 19]
example: priority=19
commands: archive-get, archive-push, backup, restore, verify default: 1 allowed: [1, 999] example: process-max=4
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, stanza-create, stanza-delete,
stanza-upgrade, verify
default: 31m
allowed: [100ms, 7d]
example: protocol-timeout=630
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
default: y
example: sck-keep-alive=n
commands: archive-get, archive-push valid with: archive-async=y default: /var/spool/pgbackrest example: spool-path=/backup/db/spool
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
valid with: sck-keep-alive=y
allowed: [1, 32]
example: tcp-keep-alive-count=3
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
valid with: sck-keep-alive=y
allowed: [1, 3600]
example: tcp-keep-alive-idle=60
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
valid with: sck-keep-alive=y
allowed: [1, 900]
example: tcp-keep-alive-interval=30
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
example: tls-cipher-12=HIGH:MEDIUM:+3DES:!aNULL
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
example: tls-cipher-13=TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, verify
default: 1.2
example: tls-min-version=1.3
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, start, stop, verify
default: warn
example: log-level-console=error
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, start, stop, verify
default: info
example: log-level-file=debug
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, start, stop, verify
default: off
example: log-level-stderr=error
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, start, stop, verify
default: /var/log/pgbackrest
example: log-path=/backup/db/log
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
default: n
example: log-subprocess=y
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, server, server-ping, stanza-create,
stanza-delete, stanza-upgrade, start, stop, verify
default: y
example: log-timestamp=n
commands: archive-push default: y example: archive-header-check=n
commands: backup default: y example: page-header-check=n
commands: archive-get, archive-push, backup, check, restore, stanza-create,
stanza-delete, stanza-upgrade, verify
example: pg-version-force=15
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=azure
example: repo1-azure-account=pg-backup
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=azure
example: repo1-azure-container=pg-backup
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=azure
default: blob.core.windows.net
example: repo1-azure-endpoint=blob.core.usgovcloudapi.net
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-azure-key-type in (shared, sas)
example: repo1-azure-key=T+9+aov82qNhrcXSNGZCzm9mjd4d75/oxxOr6r1JVpgTLA==
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=azure
default: shared
example: repo1-azure-key-type=sas
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=azure
default: host
example: repo1-azure-uri-style=path
commands: backup valid with: repo-bundle=y default: n example: repo1-block=y
commands: backup default: n example: repo1-bundle=y
commands: backup valid with: repo-bundle=y default: 2MiB allowed: [8KiB, 1PiB] example: repo1-bundle-limit=10MiB
commands: backup valid with: repo-bundle=y default: 20MiB allowed: [1MiB, 1PiB] example: repo1-bundle-size=10MiB
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-cipher-type=aes-256-cbc
example: repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGi=
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
default: none
example: repo1-cipher-type=aes-256-cbc
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=gcs
example: repo1-gcs-bucket=/pg-backup
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=gcs
default: storage.googleapis.com
example: repo1-gcs-endpoint=localhost
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-gcs-key-type in (service, token, web-id)
example: repo1-gcs-key=/etc/pgbackrest/gcs-key.json
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=gcs
default: service
example: repo1-gcs-key-type=auto
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=gcs
example: repo1-gcs-kms-key-name=projects/my-project/locations/us-east1/keyRings/my-ring/cryptoKeys/my-key
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
example: repo1-gcs-user-project=my-project
commands: backup valid with: repo-bundle=n default: n example: repo1-hardlink=y
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-local=n
example: repo1-host=repo1.domain.com
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host-type=tls
example: repo1-host-ca-file=/etc/pki/tls/certs/ca-bundle.crt
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host-type=tls
example: repo1-host-ca-path=/etc/pki/tls/certs
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host-type=tls
example: repo1-host-cert-file=/path/to/client.crt
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host-type=ssh
default: [path of executed pgbackrest binary]
example: repo1-host-cmd=/usr/lib/backrest/bin/pgbackrest
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host
default: CFGOPTDEF_CONFIG_PATH "/" PROJECT_CONFIG_FILE
example: repo1-host-config=/conf/pgbackrest/pgbackrest.conf
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host
default: CFGOPTDEF_CONFIG_PATH "/" PROJECT_CONFIG_INCLUDE_PATH
example: repo1-host-config-include-path=/conf/pgbackrest/conf.d
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host
default: CFGOPTDEF_CONFIG_PATH
example: repo1-host-config-path=/conf/pgbackrest
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host-type=tls
example: repo1-host-key-file=/path/to/client.key
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host-type in (ssh, tls)
default (depending on repo-host-type):
tls - 8432
allowed: [0, 65535]
example: repo1-host-port=25
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host
default: ssh
example: repo1-host-type=tls
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-host-type=ssh
default: pgbackrest
example: repo1-host-user=repo-user
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (cifs, posix)
default: default
example: repo1-io-mode=direct
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
default: /var/lib/pgbackrest
example: repo1-path=/backup/db/backrest
commands: backup, expire allowed: [1, 9999999] example: repo1-retention-archive=2
commands: backup, expire default: full example: repo1-retention-archive-type=diff
commands: backup, expire allowed: [1, 9999999] example: repo1-retention-diff=3
commands: backup, expire allowed: [1, 9999999] example: repo1-retention-full=2
commands: backup, expire default: count example: repo1-retention-full-type=time
commands: backup, expire allowed: [0, 9999999] example: repo1-retention-history=365
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
example: repo1-s3-bucket=pg-backup
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
example: repo1-s3-endpoint=s3.amazonaws.com
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-s3-key-type=shared
example: repo1-s3-key=AKIAIOSFODNN7EXAMPLE
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-s3-key-type=shared
example: repo1-s3-key-secret=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
default: shared
example: repo1-s3-key-type=auto
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-s3-kms-key-id
example: repo1-s3-kms-context=cluster_id=pg-prod-01
example: repo1-s3-kms-context=tenant_id=tenant-01
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
example: repo1-s3-kms-key-id=bceb4f13-6939-4be3-910d-df54dee817b7
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-s3-key-type=process
example: repo1-s3-process-cmd=/usr/local/bin/get-credentials
example: repo1-s3-process-cmd=--role
example: repo1-s3-process-cmd=my-role
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
example: repo1-s3-region=us-east-1
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
default: n
example: repo1-s3-requester-pays=n
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-s3-key-type=auto
example: repo1-s3-role=authrole
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
default: s3
example: repo1-s3-service=s3-outposts
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
example: repo1-s3-sse-customer-key=bceb4f13-6939-4be3-910d-df54dee817b7
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-s3-key-type=web-id
default: sts.amazonaws.com
example: repo1-s3-sts-host=sts.us-east-1.amazonaws.com
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-s3-key-type=shared
example: repo1-s3-token=AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22 ...
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=s3
default: host
example: repo1-s3-uri-style=path
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=sftp
example: repo1-sftp-host=sftprepo.domain
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-sftp-host-key-check-type in (fingerprint, strict)
example: repo1-sftp-host-fingerprint=f84e172dfead7aeeeae6c1fdfb5aa8cf
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=sftp
default: strict
example: repo1-sftp-host-key-check-type=accept-new
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=sftp
example: repo1-sftp-host-key-hash-type=sha256
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=sftp
default: 22
allowed: [1, 65535]
example: repo1-sftp-host-port=22
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=sftp
example: repo1-sftp-host-user=pg-backup
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-sftp-host-key-check-type in (accept-new, strict)
example: repo1-sftp-known-host=/home/postgres/.ssh/known_hosts
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=sftp
example: repo1-sftp-private-key-file=~/.ssh/id_ed25519
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=sftp
example: repo1-sftp-private-key-passphrase=BeSureToGenerateAndUseASecurePassphrase
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type=sftp
example: repo1-sftp-public-key-file=~/.ssh/id_ed25519.pub
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, gcs, s3)
example: repo1-storage-ca-file=/etc/pki/tls/certs/ca-bundle.crt
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, gcs, s3)
example: repo1-storage-ca-path=/etc/pki/tls/certs
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, s3)
example: repo1-storage-host=127.0.0.1
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, s3)
default: 443
allowed: [1, 65535]
example: repo1-storage-port=9000
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, gcs, s3)
default: 3
allowed: [0, 1024]
example: repo1-storage-prefetch=7
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, gcs, s3)
default: 64KiB
allowed: [0B, 1MiB]
example: repo1-storage-read-over=128KiB
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, gcs, s3)
example: repo1-storage-tag=key1=value1
part sizefor AWS S3,
chunk sizefor GCS, and
block sizefor Azure.
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, gcs, s3)
default (depending on repo-type):
azure - 4MiB
gcs - 4MiB
s3 - 5MiB
allow range (depending on repo-type):
azure - [4MiB, 1GiB]
gcs - [4MiB, 1GiB]
s3 - [5MiB, 1GiB]
example: repo1-storage-upload-chunk-size=16MiB
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
valid with: repo-type in (azure, gcs, s3)
default: y
example: repo1-storage-verify-tls=n
commands: backup, expire valid with: repo-type=posix default: y example: repo1-symlink=n
commands: archive-get, info, repo-get, repo-ls, restore, verify example: repo-target-time=2024-08-08 12:12:12+00
commands: annotate, archive-get, archive-push, backup, check, expire, info,
repo-get, repo-ls, restore, stanza-create, stanza-delete, stanza-upgrade,
verify
default: posix
example: repo1-type=cifs
commands: restore default: preserve example: archive-mode=off
commands: restore example: db-exclude=db_main
commands: restore example: db-include=db_main
commands: restore default: n example: link-all=y
commands: restore example: link-map=pg_xlog=/data/xlog
commands: restore valid with: type in (default, immediate, lsn, name, time, standby, xid) example: recovery-option=primary_conninfo=db.mydomain.com
commands: restore example: tablespace-map=ts_01=/db/ts_01
commands: restore example: tablespace-map-all=/data/tablespace
commands: server, server-ping default: localhost example: tls-server-address=*
commands: server example: tls-server-auth=client-cn=stanza1,stanza2
commands: server example: tls-server-ca-file=/path/to/server.ca
commands: server example: tls-server-cert-file=/path/to/server.crt
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-path default: postgres example: pg1-database=backupdb
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-local=n example: pg1-host=db.domain.com
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host-type=tls example: pg1-host-ca-file=/etc/pki/tls/certs/ca-bundle.crt
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host-type=tls example: pg1-host-ca-path=/etc/pki/tls/certs
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host-type=tls example: pg1-host-cert-file=/path/to/client.crt
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host-type=ssh default: [path of executed pgbackrest binary] example: pg1-host-cmd=/usr/lib/backrest/bin/pgbackrest
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host default: CFGOPTDEF_CONFIG_PATH "/" PROJECT_CONFIG_FILE example: pg1-host-config=/conf/pgbackrest/pgbackrest.conf
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host default: CFGOPTDEF_CONFIG_PATH "/" PROJECT_CONFIG_INCLUDE_PATH example: pg1-host-config-include-path=/conf/pgbackrest/conf.d
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host default: CFGOPTDEF_CONFIG_PATH example: pg1-host-config-path=/conf/pgbackrest
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host-type=tls example: pg1-host-key-file=/path/to/client.key
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade
valid with: pg-host-type in (ssh, tls)
default (depending on pg-host-type):
tls - 8432
allowed: [0, 65535]
example: pg1-host-port=25
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host default: ssh example: pg1-host-type=tls
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-host-type=ssh default: postgres example: pg1-host-user=db_owner
commands: archive-get, archive-push, backup, check, restore, stanza-create,
stanza-delete, stanza-upgrade
valid with: pg-path
default: default
example: pg1-io-mode=direct
commands: archive-get, archive-push, backup, check, restore, stanza-create,
stanza-delete, stanza-upgrade
valid with (check): stanza
example: pg1-path=/data/db
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-path default: 5432 allowed: [0, 65535] example: pg1-port=6543
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-path example: pg1-socket-path=/var/run/postgresql
commands: backup, check, stanza-create, stanza-delete, stanza-upgrade valid with: pg-path example: pg1-user=backupuser