2016-01-13 14:57:51 +09:00
|
|
|
\! bash sql/option.sh
|
|
|
|
###### COMMAND OPTION TEST-0001 ######
|
|
|
|
###### help option ######
|
2014-01-27 12:02:56 +09:00
|
|
|
pg_arman manage backup/recovery of PostgreSQL database.
|
2009-12-08 00:21:28 +00:00
|
|
|
|
|
|
|
Usage:
|
2014-01-27 12:02:56 +09:00
|
|
|
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
|
2009-12-08 00:21:28 +00:00
|
|
|
|
|
|
|
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
|
2016-03-02 12:12:04 +03:00
|
|
|
-j, --threads=NUM num threads for backup and restore
|
2009-12-08 00:21:28 +00:00
|
|
|
|
|
|
|
Backup options:
|
2016-03-02 12:12:04 +03:00
|
|
|
-b, --backup-mode=MODE full,page,ptrack
|
2009-12-08 00:21:28 +00:00
|
|
|
-C, --smooth-checkpoint do smooth checkpoint before backup
|
2014-01-17 22:42:27 +09:00
|
|
|
--validate validate backup after taking it
|
2009-12-08 00:21:28 +00:00
|
|
|
--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
|
2016-01-14 16:36:39 +09:00
|
|
|
-v, --verbose verbose mode
|
2009-12-08 00:21:28 +00:00
|
|
|
--help show this help, then exit
|
|
|
|
--version output version information, then exit
|
|
|
|
|
2014-01-27 12:02:56 +09:00
|
|
|
Read the website for details. <https://github.com/michaelpq/pg_arman>
|
|
|
|
Report bugs to <https://github.com/michaelpq/pg_arman/issues>.
|
2016-01-13 14:57:51 +09:00
|
|
|
1
|
|
|
|
|
|
|
|
###### COMMAND OPTION TEST-0002 ######
|
|
|
|
###### version option ######
|
2014-01-27 12:14:58 +09:00
|
|
|
pg_arman 0.1
|
2016-01-13 14:57:51 +09:00
|
|
|
1
|
|
|
|
|
|
|
|
###### COMMAND OPTION TEST-0003 ######
|
|
|
|
###### backup command failure without backup path option ######
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: required parameter not specified: BACKUP_PATH (-B, --backup-path)
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
|
|
|
###### COMMAND OPTION TEST-0004 ######
|
|
|
|
###### backup command failure without backup mode option ######
|
2013-12-16 00:35:14 +09:00
|
|
|
ERROR: Required parameter not specified: BACKUP_MODE (-b, --backup-mode)
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
|
|
|
###### COMMAND OPTION TEST-0005 ######
|
|
|
|
###### backup command failure with invalid backup mode option ######
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: invalid backup-mode "bad"
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
|
|
|
###### COMMAND OPTION TEST-0006 ######
|
2016-01-18 16:11:47 +09:00
|
|
|
###### delete failure without archive path ######
|
|
|
|
ERROR: delete command needs ARCLOG_PATH (-A, --arclog-path) to be set
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-18 16:11:47 +09:00
|
|
|
|
|
|
|
###### COMMAND OPTION TEST-0007 ######
|
2016-01-13 14:57:51 +09:00
|
|
|
###### delete failure without DATE ######
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: required delete range option not specified: delete DATE
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
2016-01-18 16:11:47 +09:00
|
|
|
###### COMMAND OPTION TEST-0008 ######
|
2016-01-13 14:57:51 +09:00
|
|
|
###### syntax error in pg_arman.ini ######
|
2011-11-28 04:22:05 +00:00
|
|
|
WARNING: syntax error in " = INFINITE"
|
2013-12-16 00:35:14 +09:00
|
|
|
ERROR: Required parameter not specified: BACKUP_MODE (-b, --backup-mode)
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
2016-01-18 16:11:47 +09:00
|
|
|
###### COMMAND OPTION TEST-0009 ######
|
2016-01-13 14:57:51 +09:00
|
|
|
###### invalid value in pg_arman.ini ######
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: invalid backup-mode ""
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
2016-01-18 16:11:47 +09:00
|
|
|
###### COMMAND OPTION TEST-0010 ######
|
2016-01-13 14:57:51 +09:00
|
|
|
###### invalid value in pg_arman.ini ######
|
|
|
|
ERROR: option --keep-data-generations should be a 32bit signed integer: 'TRUE'
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
2016-01-18 16:11:47 +09:00
|
|
|
###### COMMAND OPTION TEST-0011 ######
|
2016-01-13 14:57:51 +09:00
|
|
|
###### invalid value in pg_arman.ini ######
|
|
|
|
ERROR: option -C, --smooth-checkpoint should be a boolean: 'FOO'
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
2016-01-18 16:11:47 +09:00
|
|
|
###### COMMAND OPTION TEST-0012 ######
|
2016-01-13 14:57:51 +09:00
|
|
|
###### invalid option in pg_arman.ini ######
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: invalid option "TIMELINEID"
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|
2016-01-18 16:11:47 +09:00
|
|
|
###### COMMAND OPTION TEST-0013 ######
|
2016-01-13 14:57:51 +09:00
|
|
|
###### check priority of several pg_arman.ini files ######
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: invalid backup-mode "ENV_PATH"
|
2016-01-19 12:41:30 +09:00
|
|
|
1
|
2016-01-13 14:57:51 +09:00
|
|
|
|