mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-29 09:42:27 +02:00
102 lines
4.4 KiB
Plaintext
102 lines
4.4 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
|
|
[--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]
|
|
[-d dbname] [-h host] [-p port] [-U username]
|
|
[--master-db=db_name] [--master-host=host_name]
|
|
[--master-port=port] [--master-user=user_name]
|
|
[--replica-timeout=timeout]
|
|
[--archive-timeout=timeout]
|
|
|
|
pg_probackup show-config -B backup-path --instance=instance_name
|
|
[--format=format]
|
|
|
|
pg_probackup backup -B backup-path -b backup-mode --instance=instance_name
|
|
[-C] [--stream [-S slot-name]] [--temp-slot]
|
|
[--backup-pg-log] [-j num-threads]
|
|
[--archive-timeout=archive-timeout] [--progress]
|
|
[--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]
|
|
[--retention-redundancy=retention-redundancy]
|
|
[--retention-window=retention-window]
|
|
[--compress]
|
|
[--compress-algorithm=compress-algorithm]
|
|
[--compress-level=compress-level]
|
|
[-d dbname] [-h host] [-p port] [-U username]
|
|
[-w --no-password] [-W --password]
|
|
[--master-db=db_name] [--master-host=host_name]
|
|
[--master-port=port] [--master-user=user_name]
|
|
[--replica-timeout=timeout]
|
|
[--skip-block-validation]
|
|
|
|
pg_probackup restore -B backup-path --instance=instance_name
|
|
[-D pgdata-path] [-i backup-id] [--progress]
|
|
[--time=time|--xid=xid|--lsn=lsn [--inclusive=boolean]]
|
|
[--timeline=timeline] [-T OLDDIR=NEWDIR]
|
|
[--immediate] [--recovery-target-name=target-name]
|
|
[--recovery-target-action=pause|promote|shutdown]
|
|
[--restore-as-replica]
|
|
[--no-validate]
|
|
[--skip-block-validation]
|
|
|
|
pg_probackup validate -B backup-path [--instance=instance_name]
|
|
[-i backup-id] [--progress] [-j num-threads]
|
|
[--time=time|--xid=xid|--lsn=lsn [--inclusive=boolean]]
|
|
[--recovery-target-name=target-name]
|
|
[--timeline=timeline]
|
|
[--skip-block-validation]
|
|
|
|
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]
|
|
|
|
pg_probackup merge -B backup-path --instance=instance_name
|
|
-i backup-id
|
|
|
|
pg_probackup add-instance -B backup-path -D pgdata-path
|
|
--instance=instance_name
|
|
|
|
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
|
|
[--compress]
|
|
[--compress-algorithm=compress-algorithm]
|
|
[--compress-level=compress-level]
|
|
[--overwrite]
|
|
|
|
pg_probackup archive-get -B backup-path --instance=instance_name
|
|
--wal-file-path=wal-file-path
|
|
--wal-file-name=wal-file-name
|
|
|
|
Read the website for details. <https://github.com/postgrespro/pg_probackup>
|
|
Report bugs to <https://github.com/postgrespro/pg_probackup/issues>.
|