mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-11 11:41:33 +02:00
130 lines
5.8 KiB
Plaintext
130 lines
5.8 KiB
Plaintext
|
|
pg_probackup - utility to manage backup/recovery of PostgreSQL database.
|
|
|
|
pg_probackup help [COMMAND]
|
|
|
|
pg_probackup version
|
|
|
|
pg_probackup init -B backup-path
|
|
|
|
pg_probackup set-config -B backup-path --instance=instance_name
|
|
[-D pgdata-path]
|
|
[--external-dirs=external-directories-paths]
|
|
[--log-level-console=log-level-console]
|
|
[--log-level-file=log-level-file]
|
|
[--log-filename=log-filename]
|
|
[--error-log-filename=error-log-filename]
|
|
[--log-directory=log-directory]
|
|
[--log-rotation-size=log-rotation-size]
|
|
[--log-rotation-age=log-rotation-age]
|
|
[--retention-redundancy=retention-redundancy]
|
|
[--retention-window=retention-window]
|
|
[--compress-algorithm=compress-algorithm]
|
|
[--compress-level=compress-level]
|
|
[--archive-timeout=timeout]
|
|
[-d dbname] [-h host] [-p port] [-U username]
|
|
[--remote-proto] [--remote-host]
|
|
[--remote-port] [--remote-path] [--remote-user]
|
|
[--ssh-options]
|
|
|
|
pg_probackup show-config -B backup-path --instance=instance_name
|
|
[--format=format]
|
|
|
|
pg_probackup backup -B backup-path -b backup-mode --instance=instance_name
|
|
[-D pgdata-path] [-C]
|
|
[--stream [-S slot-name]] [--temp-slot]
|
|
[--backup-pg-log] [-j num-threads] [--progress]
|
|
[--no-validate] [--skip-block-validation]
|
|
[--external-dirs=external-directories-paths]
|
|
[--log-level-console=log-level-console]
|
|
[--log-level-file=log-level-file]
|
|
[--log-filename=log-filename]
|
|
[--error-log-filename=error-log-filename]
|
|
[--log-directory=log-directory]
|
|
[--log-rotation-size=log-rotation-size]
|
|
[--log-rotation-age=log-rotation-age]
|
|
[--delete-expired] [--delete-wal] [--merge-expired]
|
|
[--retention-redundancy=retention-redundancy]
|
|
[--retention-window=retention-window]
|
|
[--compress]
|
|
[--compress-algorithm=compress-algorithm]
|
|
[--compress-level=compress-level]
|
|
[--archive-timeout=archive-timeout]
|
|
[-d dbname] [-h host] [-p port] [-U username]
|
|
[-w --no-password] [-W --password]
|
|
[--remote-proto] [--remote-host]
|
|
[--remote-port] [--remote-path] [--remote-user]
|
|
[--ssh-options]
|
|
|
|
pg_probackup restore -B backup-path --instance=instance_name
|
|
[-D pgdata-path] [-i backup-id] [-j num-threads]
|
|
[--recovery-target-time=time|--recovery-target-xid=xid
|
|
|--recovery-target-lsn=lsn [--recovery-target-inclusive=boolean]]
|
|
[--recovery-target-timeline=timeline]
|
|
[--recovery-target=immediate|latest]
|
|
[--recovery-target-name=target-name]
|
|
[--recovery-target-action=pause|promote|shutdown]
|
|
[--restore-as-replica]
|
|
[--no-validate] [--skip-block-validation]
|
|
[-T OLDDIR=NEWDIR] [--progress]
|
|
[--external-mapping=OLDDIR=NEWDIR]
|
|
[--skip-external-dirs]
|
|
[--remote-proto] [--remote-host]
|
|
[--remote-port] [--remote-path] [--remote-user]
|
|
[--ssh-options]
|
|
|
|
pg_probackup validate -B backup-path [--instance=instance_name]
|
|
[-i backup-id] [--progress] [-j num-threads]
|
|
[--recovery-target-time=time|--recovery-target-xid=xid
|
|
|--recovery-target-lsn=lsn [--recovery-target-inclusive=boolean]]
|
|
[--recovery-target-timeline=timeline]
|
|
[--recovery-target-name=target-name]
|
|
[--skip-block-validation]
|
|
|
|
pg_probackup checkdb [-B backup-path] [--instance=instance_name]
|
|
[-D pgdata-path] [--progress] [-j num-threads]
|
|
[--amcheck] [--skip-block-validation]
|
|
[--heapallindexed]
|
|
|
|
pg_probackup show -B backup-path
|
|
[--instance=instance_name [-i backup-id]]
|
|
[--format=format]
|
|
|
|
pg_probackup delete -B backup-path --instance=instance_name
|
|
[--wal] [-i backup-id | --expired | --merge-expired]
|
|
[--dry-run]
|
|
|
|
pg_probackup merge -B backup-path --instance=instance_name
|
|
-i backup-id [--progress] [-j num-threads]
|
|
|
|
pg_probackup add-instance -B backup-path -D pgdata-path
|
|
--instance=instance_name
|
|
[--external-dirs=external-directories-paths]
|
|
[--remote-proto] [--remote-host]
|
|
[--remote-port] [--remote-path] [--remote-user]
|
|
[--ssh-options]
|
|
|
|
pg_probackup del-instance -B backup-path
|
|
--instance=instance_name
|
|
|
|
pg_probackup archive-push -B backup-path --instance=instance_name
|
|
--wal-file-path=wal-file-path
|
|
--wal-file-name=wal-file-name
|
|
[--overwrite]
|
|
[--compress]
|
|
[--compress-algorithm=compress-algorithm]
|
|
[--compress-level=compress-level]
|
|
[--remote-proto] [--remote-host]
|
|
[--remote-port] [--remote-path] [--remote-user]
|
|
[--ssh-options]
|
|
|
|
pg_probackup archive-get -B backup-path --instance=instance_name
|
|
--wal-file-path=wal-file-path
|
|
--wal-file-name=wal-file-name
|
|
[--remote-proto] [--remote-host]
|
|
[--remote-port] [--remote-path] [--remote-user]
|
|
[--ssh-options]
|
|
|
|
Read the website for details. <https://github.com/postgrespro/pg_probackup>
|
|
Report bugs to <https://github.com/postgrespro/pg_probackup/issues>.
|