mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-09 14:45:47 +02:00
113 lines
3.7 KiB
Plaintext
113 lines
3.7 KiB
Plaintext
\! bash sql/option.sh
|
|
###### COMMAND OPTION TEST-0001 ######
|
|
###### help option ######
|
|
pg_probackup manage backup/recovery of PostgreSQL database.
|
|
|
|
Usage:
|
|
pg_probackup [option...] init
|
|
pg_probackup [option...] backup
|
|
pg_probackup [option...] restore
|
|
pg_probackup [option...] show [backup-ID]
|
|
pg_probackup [option...] validate [backup-ID]
|
|
pg_probackup [option...] delete backup-ID
|
|
pg_probackup [option...] delwal [backup-ID]
|
|
|
|
Common Options:
|
|
-B, --backup-path=PATH location of the backup storage area
|
|
-D, --pgdata=PATH location of the database storage area
|
|
|
|
Backup options:
|
|
-b, --backup-mode=MODE backup mode (full, page, ptrack)
|
|
-C, --smooth-checkpoint do smooth checkpoint before backup
|
|
--stream stream the transaction log and include it in the backup
|
|
-S, --slot=SLOTNAME replication slot to use
|
|
--backup-pg-log backup of pg_log directory
|
|
-j, --threads=NUM number of parallel threads
|
|
--progress show progress
|
|
|
|
Restore options:
|
|
--time time stamp up to which recovery will proceed
|
|
--xid transaction ID up to which recovery will proceed
|
|
--inclusive whether we stop just after the recovery target
|
|
--timeline recovering into a particular timeline
|
|
-j, --threads=NUM number of parallel threads
|
|
--progress show progress
|
|
|
|
Delete options:
|
|
--wal remove unnecessary wal files
|
|
|
|
Connection options:
|
|
-d, --dbname=DBNAME database to connect
|
|
-h, --host=HOSTNAME database server host or socket directory
|
|
-p, --port=PORT database server port
|
|
-U, --username=USERNAME user name to connect as
|
|
-w, --no-password never prompt for password
|
|
-W, --password force password prompt
|
|
|
|
Generic options:
|
|
-q, --quiet don't write any messages
|
|
-v, --verbose verbose mode
|
|
--help show this help, then exit
|
|
--version output version information and exit
|
|
|
|
Read the website for details. <https://github.com/postgrespro/pg_probackup>
|
|
Report bugs to <https://github.com/postgrespro/pg_probackup/issues>.
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0002 ######
|
|
###### version option ######
|
|
pg_probackup 1.0
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0003 ######
|
|
###### backup command failure without backup path option ######
|
|
ERROR: required parameter not specified: BACKUP_PATH (-B, --backup-path)
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0004 ######
|
|
###### backup command failure without backup mode option ######
|
|
ERROR: Required parameter not specified: BACKUP_MODE (-b, --backup-mode)
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0005 ######
|
|
###### backup command failure with invalid backup mode option ######
|
|
ERROR: invalid backup-mode "bad"
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0007 ######
|
|
###### delete failure without DATE ######
|
|
ERROR: required backup ID not specified
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0008 ######
|
|
###### syntax error in pg_probackup.conf ######
|
|
WARNING: syntax error in " = INFINITE"
|
|
ERROR: Required parameter not specified: BACKUP_MODE (-b, --backup-mode)
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0009 ######
|
|
###### invalid value in pg_probackup.conf ######
|
|
ERROR: invalid backup-mode ""
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0010 ######
|
|
###### invalid value in pg_probackup.conf ######
|
|
ERROR: invalid option "KEEP_DATA_GENERATIONS"
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0011 ######
|
|
###### invalid value in pg_probackup.conf ######
|
|
ERROR: option -C, --smooth-checkpoint should be a boolean: 'FOO'
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0012 ######
|
|
###### invalid option in pg_probackup.conf ######
|
|
ERROR: invalid option "TIMELINEID"
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0013 ######
|
|
###### check priority of several pg_probackup.conf files ######
|
|
ERROR: invalid backup-mode "ENV_PATH"
|
|
1
|
|
|