@@ -37,23 +37,23 @@ It proposes the following features:
37
37
pg_arman supports the following commands. See also ** OPTIONS** for more
38
38
details.
39
39
40
- ** init** :
40
+ ** init** :
41
41
Initialize a backup catalog.
42
42
43
- ** backup** :
43
+ ** backup** :
44
44
Take an online backup.
45
45
46
- ** restore** :
46
+ ** restore** :
47
47
Perform restore.
48
48
49
- ** show** :
49
+ ** show** :
50
50
Show backup history. The timeline option shows timeline of the backup
51
51
and the parent's timeline for each backup.
52
52
53
- ** validate** :
53
+ ** validate** :
54
54
Validate backup files.
55
55
56
- ** delete** :
56
+ ** delete** :
57
57
Delete backup files.
58
58
59
59
### INITIALIZATION
@@ -202,38 +202,38 @@ details.
202
202
As a general rule, paths for data location need to be specified as
203
203
absolute paths; relative paths are not allowed.
204
204
205
- ** -D** * PATH* / ** --pgdata** =* PATH* :
205
+ ** -D** PATH / ** --pgdata** =* PATH* :
206
206
The absolute path of database cluster. Required on backup and
207
207
restore.
208
208
209
- ** -A** * PATH* / ** --arclog-path** =* PATH* :
209
+ ** -A** PATH / ** --arclog-path** =* PATH* :
210
210
The absolute path of archive WAL directory. Required for restore
211
211
and show command.
212
212
213
- * -B* _ PATH _ / * --backup-path* = _ PATH _ ::
213
+ ** -B** PATH / ** --backup-path** = * PATH * :
214
214
The absolute path of backup catalog. This option is mandatory.
215
215
216
- * -c* / * --check* ::
216
+ ** -c** / ** --check** :
217
217
If specifed, pg_arman doesn't perform actual jobs but only checks
218
218
parameters and required resources. The option is typically used with
219
219
--verbose option to verify the operation.
220
220
221
- === BACKUP OPTIONS ===
221
+ ### BACKUP OPTIONS
222
222
223
- * -b* _ BACKUPMODE _ / * --backup-mode* = _ BACKUPMODE _ ::
223
+ ** -b** BACKUPMODE / ** --backup-mode** =BACKUPMODE:
224
224
Specify backup target files. Available options are: "full",
225
225
"page".
226
226
227
- * -C* / * --smooth-checkpoint* ::
227
+ ** -C** / ** --smooth-checkpoint** :
228
228
Checkpoint is performed on every backups. If the option is specified,
229
229
do smooth checkpoint then. See also the second argument for
230
230
pg_start_backup().
231
231
232
- * --validate* ::
232
+ ** --validate** :
233
233
Validate a backup just after taking it. Other backups taken
234
234
previously are ignored.
235
235
236
- * --keep-data-generations* = _ NUMBER _ / * --keep-data-days* = _ DAYS _ ::
236
+ ** --keep-data-generations** =NUMBER / ** --keep-data-days** =DAYS:
237
237
Specify how long backuped data files will be kept.
238
238
--keep-data-generations means number of backup generations.
239
239
--keep-data-days means days to be kept.
@@ -312,27 +312,28 @@ Parameters to connect PostgreSQL server.
312
312
313
313
Some of parameters can be specified as command line arguments, environment
314
314
variables or in configuration file as follows:
315
-
316
- Short Long Env File
317
- -h --host PGHOST No
318
- -p --port PGPORT No
319
- -d --dbname PGDATABASE No
320
- -U --username PGUSER No
321
- PGPASSWORD No
322
- -w --password No
323
- -W --no-password No
324
- -D --pgdata PGDATA Yes
325
- -B --backup-path BACKUP_PATH Yes
326
- -A --arclog-path ARCLOG_PATH Yes
327
- -b --backup-mode BACKUP_MODE Yes
328
- -C --smooth-checkpoint SMOOTH_CHECKPOINT Yes
329
- --validate VALIDATE Yes
330
- --keep-data-generations KEEP_DATA_GENERATIONS Yes
331
- --keep-data-days KEEP_DATA_DAYS Yes
332
- --recovery-target-timeline RECOVERY_TARGET_TIMELINE Yes
333
- --recovery-target-xid RECOVERY_TARGET_XID Yes
334
- --recovery-target-time RECOVERY_TARGET_TIME Yes
335
- --recovery-target-inclusive RECOVERY_TARGET_INCLUSIVE Yes
315
+ ```
316
+ Short Long Env File
317
+ -h --host PGHOST No
318
+ -p --port PGPORT No
319
+ -d --dbname PGDATABASE No
320
+ -U --username PGUSER No
321
+ PGPASSWORD No
322
+ -w --password No
323
+ -W --no-password No
324
+ -D --pgdata PGDATA Yes
325
+ -B --backup-path BACKUP_PATH Yes
326
+ -A --arclog-path ARCLOG_PATH Yes
327
+ -b --backup-mode BACKUP_MODE Yes
328
+ -C --smooth-checkpoint SMOOTH_CHECKPOINT Yes
329
+ --validate VALIDATE Yes
330
+ --keep-data-generations KEEP_DATA_GENERATIONS Yes
331
+ --keep-data-days KEEP_DATA_DAYS Yes
332
+ --recovery-target-timeline RECOVERY_TARGET_TIMELINE Yes
333
+ --recovery-target-xid RECOVERY_TARGET_XID Yes
334
+ --recovery-target-time RECOVERY_TARGET_TIME Yes
335
+ --recovery-target-inclusive RECOVERY_TARGET_INCLUSIVE Yes
336
+ ```
336
337
337
338
Variable names in configuration file are the same as long names or names
338
339
of environment variables. The password can not be specified in command
@@ -376,11 +377,13 @@ aimed at working with PostgreSQL 9.5 and newer versions.
376
377
### EXIT CODE
377
378
pg_arman returns exit codes for each error status.
378
379
379
- Code Name Description
380
- 0 SUCCESS Operation succeeded.
381
- 1 ERROR Generic error
382
- 2 FATAL Exit because of repeated errors
383
- 3 PANIC Unknown critical condition
380
+ ```
381
+ Code Name Description
382
+ 0 SUCCESS Operation succeeded.
383
+ 1 ERROR Generic error
384
+ 2 FATAL Exit because of repeated errors
385
+ 3 PANIC Unknown critical condition
386
+ ```
384
387
385
388
## AUTHOR ##
386
389
pg_arman is a fork of pg_arman that was originally written by NTT, now
0 commit comments