mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-24 11:46:31 +02:00
f94c5ab447
--debug and --verbose had actually the same meaning as they were aimed at giving to the user information regarding how the process is running, hence both options are merged into --verbose and use elog(LOG) to decide if a given message should be printed out depending on the verbosity of the call. This makes a couple of routines more readable as they do not depend on any boolean checks. The "_()" have been removed from the code, those are aimed at being used for translation but having them mandatorily in each log message is just useless noise. If needed, pgut.c should be updated in consequence to have a more portable facility. At the same time this commit takes care of putting into correct shape some code paths more in-line with PostgreSQL policy. There are surely more of this kind of ugly stuff but at this stage things are more simple and more manageable.
110 lines
3.6 KiB
Plaintext
110 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 [DATE]
|
|
pg_arman OPTION validate [DATE]
|
|
pg_arman OPTION delete DATE
|
|
|
|
Common Options:
|
|
-D, --pgdata=PATH location of the database storage area
|
|
-A, --arclog-path=PATH location of archive WAL storage area
|
|
-B, --backup-path=PATH location of the backup storage area
|
|
-c, --check show what would have been done
|
|
|
|
Backup options:
|
|
-b, --backup-mode=MODE full or page
|
|
-C, --smooth-checkpoint do smooth checkpoint before backup
|
|
--validate validate backup after taking it
|
|
--keep-data-generations=N keep GENERATION of full data backup
|
|
--keep-data-days=DAY keep enough data backup to recover to DAY days age
|
|
|
|
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
|
|
|
|
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/michaelpq/pg_arman>
|
|
Report bugs to <https://github.com/michaelpq/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)
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0004 ######
|
|
###### backup command failure without backup mode option ######
|
|
ERROR: Required parameter not specified: BACKUP_MODE (-b, --backup-mode)
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0005 ######
|
|
###### backup command failure with invalid backup mode option ######
|
|
ERROR: invalid backup-mode "bad"
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0006 ######
|
|
###### delete failure without DATE ######
|
|
ERROR: required delete range option not specified: delete DATE
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0007 ######
|
|
###### syntax error in pg_arman.ini ######
|
|
WARNING: syntax error in " = INFINITE"
|
|
ERROR: Required parameter not specified: BACKUP_MODE (-b, --backup-mode)
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0008 ######
|
|
###### invalid value in pg_arman.ini ######
|
|
ERROR: invalid backup-mode ""
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0009 ######
|
|
###### invalid value in pg_arman.ini ######
|
|
ERROR: option --keep-data-generations should be a 32bit signed integer: 'TRUE'
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0010 ######
|
|
###### invalid value in pg_arman.ini ######
|
|
ERROR: option -C, --smooth-checkpoint should be a boolean: 'FOO'
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0011 ######
|
|
###### invalid option in pg_arman.ini ######
|
|
ERROR: invalid option "TIMELINEID"
|
|
12
|
|
|
|
###### COMMAND OPTION TEST-0012 ######
|
|
###### check priority of several pg_arman.ini files ######
|
|
ERROR: invalid backup-mode "ENV_PATH"
|
|
12
|
|
|