Added pg_dump_suffix doc and crd property (#1006)

* Added pg_dump_suffix crd property

Signed-off-by: Mathijs van Willigen <mathijs.vanwilligen@student.hu.nl>
This commit is contained in:
Mathijsvw
2022-12-14 20:56:40 +01:00
committed by GitHub
parent 4c5bae69ef
commit 4ee523ed69
2 changed files with 9 additions and 0 deletions

View File

@@ -78,6 +78,9 @@ spec:
clean_backup_on_delete: clean_backup_on_delete:
description: Flag to indicate if backup should be deleted on PVC if AWXBackup object is deleted description: Flag to indicate if backup should be deleted on PVC if AWXBackup object is deleted
type: boolean type: boolean
pg_dump_suffix:
description: Additional parameters for the pg_dump command
type: string
postgres_label_selector: postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data description: Label selector used to identify postgres pod for backing up data
type: string type: string

View File

@@ -93,6 +93,12 @@ backup_resource_requirements:
memory: "32Mi" memory: "32Mi"
``` ```
To customize the pg_dump command that will be executed on a backup use the `pg_dump_suffix` variable. This variable will append your provided pg_dump parameters to the end of the 'standard' command. For example to exclude the data from 'main_jobevent' and 'main_job' to decrease the size of the backup use:
```
pg_dump_suffix: "--exclude-table-data 'main_jobevent*' --exclude-table-data 'main_job'"
```
Testing Testing
---------------- ----------------