mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 14:22:49 +00:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user