6efe39d8ad440aaedf1a9d0eeb8d03bbb61fa94d
PgBackRest backup wrapper
Wrapper to call the full/differential backup on all stanzas
Options
-b (backuptype): full/diff
-s (stanza): override stanza name, must be in stanza.cfg file
-l list available stanza
-t test run
Either -l or -b option must be set
Config
Two files must be created
config/pgbackrest.cfg
Example file is pgbackrest.sample.cfg
This file holds the sudo_user for calling the commands
[PgBackRest]
sudo_user=postgres
config/stanza.cfg
Example file is stanza.sample.cfg
This files holds the stanzas to backup
stanza:repo number:path to config file
If the stanza has several repo settings as in "repo1-...", "repo2-..." then the repo to target can be listed in here by ":repo number"
The third optional parameter is a config file path
[stanzas]
stanza_a
stanza_b:1
stanza_b:2
stanza_c::/etc/to/config
Description
Languages
Shell
100%