mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-09 14:45:47 +02:00
113 lines
3.6 KiB
Plaintext
113 lines
3.6 KiB
Plaintext
\! bash sql/option.sh
|
|
###### COMMAND OPTION TEST-0001 ######
|
|
###### help option ######
|
|
pg_arman manage backup/recovery of PostgreSQL database.
|
|
|
|
Usage:
|
|
pg_arman OPTION init
|
|
pg_arman OPTION backup
|
|
pg_arman OPTION restore
|
|
pg_arman OPTION show [ID]
|
|
pg_arman OPTION validate [ID]
|
|
pg_arman OPTION delete ID
|
|
|
|
Common Options:
|
|
-D, --pgdata=PATH location of the database storage area
|
|
-B, --backup-path=PATH location of the backup storage area
|
|
-j, --threads=NUM num threads for backup and restore
|
|
--progress show progress copy files
|
|
|
|
Backup options:
|
|
-b, --backup-mode=MODE full,page,ptrack
|
|
-C, --smooth-checkpoint do smooth checkpoint before backup
|
|
--stream use stream for save/restore WAL during backup
|
|
--backup-pg-log start backup pg_log directory
|
|
-S, --slot=SLOTNAME replication slot to use
|
|
|
|
Restore options:
|
|
--recovery-target-time time stamp up to which recovery will proceed
|
|
--recovery-target-xid transaction ID up to which recovery will proceed
|
|
--recovery-target-inclusive whether we stop just after the recovery target
|
|
--recovery-target-timeline recovering into a particular timeline
|
|
|
|
Catalog options:
|
|
-a, --show-all show deleted backup too
|
|
|
|
Delete options:
|
|
--wal remove unnecessary wal archives also
|
|
|
|
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, then exit
|
|
|
|
Read the website for details. <https://github.com/stalkerg/pg_arman>
|
|
Report bugs to <https://github.com/stalkerg/pg_arman/issues>.
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0002 ######
|
|
###### version option ######
|
|
pg_arman 0.1
|
|
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 delete range option not specified: delete DATE
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0008 ######
|
|
###### syntax error in pg_arman.ini ######
|
|
WARNING: syntax error in " = INFINITE"
|
|
ERROR: Required parameter not specified: BACKUP_MODE (-b, --backup-mode)
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0009 ######
|
|
###### invalid value in pg_arman.ini ######
|
|
ERROR: invalid backup-mode ""
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0010 ######
|
|
###### invalid value in pg_arman.ini ######
|
|
ERROR: invalid option "KEEP_DATA_GENERATIONS"
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0011 ######
|
|
###### invalid value in pg_arman.ini ######
|
|
ERROR: option -C, --smooth-checkpoint should be a boolean: 'FOO'
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0012 ######
|
|
###### invalid option in pg_arman.ini ######
|
|
ERROR: invalid option "TIMELINEID"
|
|
1
|
|
|
|
###### COMMAND OPTION TEST-0013 ######
|
|
###### check priority of several pg_arman.ini files ######
|
|
ERROR: invalid backup-mode "ENV_PATH"
|
|
1
|
|
|