Skip to content

Allow skipping PostgreSQL database backup/restore#2120

Open
dsavineau wants to merge 1 commit into
ansible:develfrom
dsavineau:skip_db_backup_restore
Open

Allow skipping PostgreSQL database backup/restore#2120
dsavineau wants to merge 1 commit into
ansible:develfrom
dsavineau:skip_db_backup_restore

Conversation

@dsavineau

@dsavineau dsavineau commented Jun 2, 2026

Copy link
Copy Markdown
Contributor
SUMMARY

This allows one to skip the PostgreSQL database dump/restore during via the AWXBackup and AWXRestore CRDs on external database configuration.

ISSUE TYPE
  • New or Enhanced Feature
ADDITIONAL INFORMATION

A new parameter called postgres_skip_data is introduced (defaults to false for backward compatibility) but can be turn on to skip the pg_dump and pg_restore parts.

At restore time, if no database dump file is found in the backup then the postgres_skip_data parameter needs to be explicitely set to true.

@dsavineau dsavineau force-pushed the skip_db_backup_restore branch from 649f081 to e8e658c Compare June 2, 2026 20:01
@dsavineau dsavineau marked this pull request as ready for review June 11, 2026 21:38
Comment thread config/crd/bases/awx.ansible.com_awxbackups.yaml Outdated
Comment thread roles/backup/tasks/update_status.yml Outdated
This allows one to skip the PostgreSQL database dump/restore during via the
AWXBackup and AWXRestore CRDs on external database configuration.

A new parameter called `postgres_skip_data` is introduced (defaults to false
for backward compatibility) but can be turn on to skip the pg_dump and
pg_restore parts.
That value is passed down to nested components so other pg_dump/pg_restore calls
are also skipped.

At restore time, if no database dump file is found in the backup then the
`postgres_skip_data` parameter needs to be explicitely set to true.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
@dsavineau dsavineau force-pushed the skip_db_backup_restore branch from e8e658c to 2a6e714 Compare June 15, 2026 13:34
@dsavineau dsavineau requested a review from rooftopcellist June 15, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants