@@ -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
- ShortLongEnvFile
317
- -h--hostPGHOSTNo
318
- -p--portPGPORTNo
319
- -d--dbnamePGDATABASENo
320
- -U--usernamePGUSERNo
321
- PGPASSWORDNo
322
- -w--passwordNo
323
- -W--no-passwordNo
324
- -D--pgdataPGDATAYes
325
- -B--backup-pathBACKUP_PATHYes
326
- -A--arclog-pathARCLOG_PATHYes
327
- -b--backup-modeBACKUP_MODEYes
328
- -C--smooth-checkpointSMOOTH_CHECKPOINTYes
329
- --validate VALIDATEYes
330
- --keep-data-generationsKEEP_DATA_GENERATIONSYes
331
- --keep-data-daysKEEP_DATA_DAYSYes
332
- --recovery-target-timeline RECOVERY_TARGET_TIMELINE Yes
333
- --recovery-target-xidRECOVERY_TARGET_XIDYes
334
- --recovery-target-timeRECOVERY_TARGET_TIMEYes
335
- --recovery-target-inclusive RECOVERY_TARGET_INCLUSIVE Yes
315
+ ```
316
+ ShortLongEnvFile
317
+ -h--hostPGHOSTNo
318
+ -p--portPGPORTNo
319
+ -d--dbnamePGDATABASENo
320
+ -U--usernamePGUSERNo
321
+ PGPASSWORDNo
322
+ -w--passwordNo
323
+ -W--no-passwordNo
324
+ -D--pgdataPGDATAYes
325
+ -B--backup-pathBACKUP_PATHYes
326
+ -A--arclog-pathARCLOG_PATHYes
327
+ -b--backup-modeBACKUP_MODEYes
328
+ -C--smooth-checkpointSMOOTH_CHECKPOINTYes
329
+ --validate VALIDATEYes
330
+ --keep-data-generationsKEEP_DATA_GENERATIONSYes
331
+ --keep-data-daysKEEP_DATA_DAYSYes
332
+ --recovery-target-timeline RECOVERY_TARGET_TIMELINE Yes
333
+ --recovery-target-xidRECOVERY_TARGET_XIDYes
334
+ --recovery-target-timeRECOVERY_TARGET_TIMEYes
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
- CodeNameDescription
380
- 0SUCCESSOperation succeeded.
381
- 1ERRORGeneric error
382
- 2FATALExit because of repeated errors
383
- 3PANICUnknown critical condition
380
+ ```
381
+ CodeNameDescription
382
+ 0SUCCESSOperation succeeded.
383
+ 1ERRORGeneric error
384
+ 2FATALExit because of repeated errors
385
+ 3PANICUnknown 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