Update PgBackRest wrapper script and move the config data into separate folder
This commit is contained in:
32
ReadMe.md
32
ReadMe.md
@@ -2,16 +2,40 @@
|
||||
|
||||
Wrapper to call the full/differential backup on all stanzas
|
||||
|
||||
> [!notice]
|
||||
> Currently all stanzas are hardoded, this should change
|
||||
|
||||
## Options
|
||||
|
||||
```txt
|
||||
-b (backuptype): full/diff
|
||||
-s (stanza): override stanza name, must be in list
|
||||
-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
|
||||
|
||||
```ini
|
||||
[PgBackRest]
|
||||
sudo_user=pgbackrest
|
||||
```
|
||||
|
||||
### `config/stanza.cfg`
|
||||
|
||||
Example file is `stanza.sample.cfg`
|
||||
|
||||
This files holds the stanzas to backup
|
||||
|
||||
```ini
|
||||
[stanzas]
|
||||
stanza_a
|
||||
stanza_b
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user