Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to exclude job event and job data from backup #958

Closed
3 tasks done
kdelee opened this issue Jun 22, 2022 · 1 comment · Fixed by #1006
Closed
3 tasks done

Add ability to exclude job event and job data from backup #958

kdelee opened this issue Jun 22, 2022 · 1 comment · Fixed by #1006
Labels
component:operator good first issue Good for newcomers Hacktoberfest Issues tagged for Hacktoberfest type:enhancement New feature or request

Comments

@kdelee
Copy link
Member

kdelee commented Jun 22, 2022

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX Operator is open source software provided for free and that I might not receive a timely response.

Feature Summary

Sometimes for users with lots of data, they are told they can manually dump the data and pass --exclude-table-data '*.main_jobevent' and/or --exclude-table-data '*.main_job'

It would be useful if we could do that for the AWXBackup in

pgdump: >-
pg_dump --clean --create
-h {{ resolvable_db_host }}
-U {{ awx_postgres_user }}
-d {{ awx_postgres_database }}
-p {{ awx_postgres_port }}
-F custom
no_log: "{{ no_log }}"

@sdktr
Copy link
Contributor

sdktr commented Jul 7, 2022

Adding an optional 'pg_dump_command_option' variable could provide a generic fix? Like:

     pgdump: >- 
       pg_dump --clean --create 
       -h {{ resolvable_db_host }} 
       -U {{ awx_postgres_user }} 
       -d {{ awx_postgres_database }} 
       -p {{ awx_postgres_port }} 
       -F custom 
       {{ pg_dump_command_option | default() }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:operator good first issue Good for newcomers Hacktoberfest Issues tagged for Hacktoberfest type:enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants