Skip to content

Synchronize CNPG and real pgBackRest backups#125

Merged
l00ptr merged 1 commit into
mainfrom
feature/synchronize-backups-with-real-ones
Apr 24, 2026
Merged

Synchronize CNPG and real pgBackRest backups#125
l00ptr merged 1 commit into
mainfrom
feature/synchronize-backups-with-real-ones

Conversation

@l00ptr
Copy link
Copy Markdown
Collaborator

@l00ptr l00ptr commented Apr 24, 2026

This commit add the logic to remove orphaned Backup resources during stanza "maintenance". Specifically, it introduces a mechanism to cross-reference CNPG Backup objects with the actual labels found in pgBackRest.

this process does not work in reverse: deleting a CNPG backup object will not expire or remove a backup from the pgBackRest repositories, and backups done outside (e.g. by hand) CNPG will not result in the creation new CNPG objects.

This commit add the logic to remove orphaned Backup resources during
stanza "maintenance". Specifically, it introduces a mechanism to
cross-reference CNPG Backup objects with the actual labels found in
pgBackRest.

this process does not work in reverse: deleting a CNPG backup object
will not expire or remove a backup from the pgBackRest repositories, and
backups done outside (e.g. by hand) CNPG will not result in the creation
new CNPG objects.
@l00ptr l00ptr merged commit 9a24239 into main Apr 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants