2009-12-08 00:21:28 +00:00
|
|
|
\! sh sql/option.sh
|
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
|
2013-12-13 00:57:54 +09:00
|
|
|
-v, --verbose output process information
|
2009-12-08 00:21:28 +00:00
|
|
|
|
|
|
|
Backup options:
|
2014-01-24 22:36:31 +09:00
|
|
|
-b, --backup-mode=MODE full or incremental
|
2009-12-08 00:21:28 +00:00
|
|
|
-Z, --compress-data compress data backup with zlib
|
|
|
|
-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
|
|
|
|
--debug debug mode
|
|
|
|
--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>.
|
|
|
|
pg_arman 1.3dev
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: required parameter not specified: BACKUP_PATH (-B, --backup-path)
|
2014-01-24 22:36:31 +09:00
|
|
|
ERROR: required parameter not specified: ARCLOG_PATH (-A, --arclog-path)
|
|
|
|
ERROR: required parameter not specified: BACKUP_PATH (-B, --backup-path)
|
2013-12-16 00:35:14 +09:00
|
|
|
ERROR: Required parameter not specified: BACKUP_MODE (-b, --backup-mode)
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: invalid backup-mode "bad"
|
|
|
|
ERROR: required delete range option not specified: delete DATE
|
2011-11-28 04:22:05 +00:00
|
|
|
INFO: validate: 2009-05-31 17:05:53 backup and archive log files by CRC
|
|
|
|
INFO: validate: 2009-06-01 17:05:53 backup and archive log files by CRC
|
2009-12-08 00:21:28 +00:00
|
|
|
WARNING: CRC of backup file "PG_VERSION" must be 0 but FEF71BC1
|
|
|
|
WARNING: backup 2009-06-01 17:05:53 is corrupted
|
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)
|
2009-12-08 00:21:28 +00:00
|
|
|
ERROR: invalid backup-mode ""
|
|
|
|
ERROR: invalid backup-mode "B"
|
|
|
|
ERROR: option -Z, --compress-data should be a boolean: 'FOO'
|
|
|
|
ERROR: invalid option "TIMELINEID"
|
|
|
|
ERROR: invalid option "BACKUP_TARGETS"
|
|
|
|
ERROR: invalid backup-mode "ENV_PATH"
|