1- = pg_arman(1) =
1+ # pg_arman(1)
22
3- == NAME ==
3+ ## NAME
44
55pg_arman - Backup and recovery manager for PostgreSQL
66
7- == SYNOPSIS ==
7+ ## SYNOPSIS
88
99pg_arman [ OPTIONS ]
1010 { init |
@@ -18,7 +18,7 @@ DATE is the start time of the target backup in ISO-format:
1818(YYYY-MM-DD HH:MI: SS ). Prefix match is used to compare DATE and backup
1919files.
2020
21- == DESCRIPTION ==
21+ ## DESCRIPTION
2222
2323pg_arman is a utility program to backup and restore PostgreSQL database.
2424
@@ -31,7 +31,7 @@ It proposes the following features:
3131- Support for full and differential backup
3232- Management of backups with integrated catalog
3333
34- == COMMANDS ==
34+ ## COMMANDS
3535
3636pg_arman supports the following commands. See also * OPTIONS* for more
3737details.
@@ -55,7 +55,7 @@ details.
5555* delete* ::
5656 Delete backup files.
5757
58- === INITIALIZATION ===
58+ ### INITIALIZATION
5959
6060First, you need to create "a backup catalog" to store backup files and
6161their metadata. It is recommended to setup archive_mode and archive_command
@@ -66,7 +66,7 @@ specify it in PGDATA environmental variable or -D/--pgdata option.
6666
6767 $ pg_arman init -B /path/to/backup/
6868
69- === BACKUP ===
69+ ### BACKUP
7070
7171Backup target can be one of the following types:
7272
@@ -81,7 +81,7 @@ has been run needs to be forcibly switched.
8181It is recommended to verify backup files as soon as possible after backup.
8282Unverified backup cannot be used in restore and in differential backup.
8383
84- === RESTORE ===
84+ ### RESTORE
8585
8686PostgreSQL server should be stopped before performing a restore. If database
8787cluster still exists, restore command will save unarchived transaction log
@@ -99,7 +99,7 @@ target. If pg_control is not present, TimeLineID in the full backup used by
9999the restore will be a restore target.
100100
101101
102- == EXAMPLES ==
102+ ### EXAMPLES
103103
104104To reduce the number of command line arguments, you can set BACKUP_PATH,
105105an environment variable, to the absolute path of the backup catalog and
@@ -111,32 +111,32 @@ write default configuration into ${BACKUP_PATH}/pg_arman.ini.
111111 KEEP_DATA_GENERATIONS = 3
112112 KEEP_DATA_DAYS = 120
113113
114- === TAKE A BACKUP ===
114+ ### TAKE A BACKUP
115115
116116This example takes a full backup of the whole database. Then, it validates
117117all unvalidated backups.
118118
119119 $ pg_arman backup --backup-mode=full
120120 $ pg_arman validate
121121
122- === RESTORE FROM A BACKUP ===
122+ ### RESTORE FROM A BACKUP
123123
124124Here are some commands to restore from a backup:
125125
126126 $ pg_ctl stop -m immediate
127127 $ pg_arman restore
128128 $ pg_ctl start
129129
130- === SHOW A BACKUP ===
131-
130+ ### SHOW A BACKUP
131+ ```
132132 $ pg_arman show
133133 ===================================================================================
134134 Start Mode Current TLI Parent TLI Time Data Backup Status
135135 ===================================================================================
136136 2013-12-25 03:02:31 PAGE 1 0 0m 203kB 67MB DONE
137137 2013-12-25 03:02:31 PAGE 1 0 0m 0B 0B ERROR
138138 2013-12-25 03:02:25 FULL 1 0 0m 33MB 364MB OK
139-
139+ ```
140140The fields are:
141141
142142* Start: start time of backup
@@ -182,13 +182,13 @@ the specified date. This command also cleans up in the WAL archive the
182182WAL segments that are no longer needed to restore from the remaining
183183backups.
184184
185- == OPTIONS ==
185+ ### OPTIONS
186186
187187pg_arman accepts the following command line parameters. Some of them can
188188be also specified as environment variables. See also * PARAMETERS* for the
189189details.
190190
191- === COMMON OPTIONS ===
191+ ### COMMON OPTIONS
192192As a general rule, paths for data location need to be specified as
193193absolute paths; relative paths are not allowed.
194194
@@ -229,7 +229,7 @@ absolute paths; relative paths are not allowed.
229229 --keep-data-days means days to be kept.
230230 Only files exceeded one of those settings are deleted.
231231
232- === RESTORE OPTIONS ===
232+ ### RESTORE OPTIONS
233233
234234The parameters whose name start are started with --recovery refer to
235235the same parameters as the ones in recovery.confin recovery.conf.
@@ -254,7 +254,7 @@ the same parameters as the ones in recovery.confin recovery.conf.
254254* -a* / * --show-all* ::
255255 Show all existing backups, including the deleted ones.
256256
257- === CONNECTION OPTIONS ===
257+ ### CONNECTION OPTIONS
258258Parameters to connect PostgreSQL server.
259259
260260* -d* _ DBNAME_ / * --dbname* =_ DBNAME_ ::
@@ -287,7 +287,7 @@ Parameters to connect PostgreSQL server.
287287 if the server wants a password. In some cases it is worth typing -W
288288 to avoid the extra connection attempt.
289289
290- === GLOBAL OPTIONS ===
290+ ### GLOBAL OPTIONS
291291
292292* --help* ::
293293 Print help, then exit.
@@ -298,7 +298,7 @@ Parameters to connect PostgreSQL server.
298298* -v* / * --verbose* ::
299299 If specified, pg_arman works in verbose mode.
300300
301- == PARAMETERS ==
301+ ## PARAMETERS
302302
303303Some of parameters can be specified as command line arguments, environment
304304variables or in configuration file as follows:
@@ -331,7 +331,7 @@ line and configuration file for security reason.
331331This utility, like most other PostgreSQL utilities, also uses the
332332environment variables supported by libpq (see Environment Variables).
333333
334- == RESTRICTIONS ==
334+ ## RESTRICTIONS ##
335335
336336pg_arman has the following restrictions.
337337
@@ -344,26 +344,26 @@ pg_arman has the following restrictions.
344344 WAL directory or archived WAL directory, the backup or restore will fail
345345 depending on the backup mode selected.
346346
347- == DETAILS ==
347+ ## DETAILS ##
348348
349- === RECOVERY TO POINT-IN-TIME ===
349+ ### RECOVERY TO POINT-IN-TIME
350350pg_arman can recover to point-in-time if timeline, transaction ID, or
351351timestamp is specified in recovery.conf. xlogdump is a contrib module of
352352PostgreSQL core that allows checking in the content of WAL files and
353353determine when to recover. This might help.
354354
355- === CONFIGURATION FILE ===
355+ ### CONFIGURATION FILE
356356Setting parameters in configuration file is done as "name=value". Quotes
357357are required if the value contains whitespaces. Comments should start with
358358"#" and are automatically ignored. Whitespaces and tabs are ignored
359359excluding values.
360360
361- === Restrictions ===
361+ ### Restrictions
362362In order to work, the PostgreSQL instance on which backups are taken need
363363to have data checksums enabled or to enable wal_log_hints. pg_arman is
364364aimed at working with PostgreSQL 9.5 and newer versions.
365365
366- === EXIT CODE ===
366+ ### EXIT CODE
367367pg_arman returns exit codes for each error status.
368368
369369 Code Name Description
@@ -372,7 +372,7 @@ pg_arman returns exit codes for each error status.
372372 2 FATAL Exit because of repeated errors
373373 3 PANIC Unknown critical condition
374374
375- == AUTHOR ==
375+ ## AUTHOR ##
376376pg_arman is a fork of pg_arman that was originally written by NTT, now
377377developed and maintained by Michael Paquier.
378378
0 commit comments