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

Delete target backup (improvements) #917

Merged
merged 5 commits into from Apr 1, 2021

Conversation

usernamedt
Copy link
Member

In this PR I propose several improvements to the previously introduced (#913) delete target backup command.

  1. Rename the --find-full flag to FIND_FULL to match the other delete commands.

  2. Implement delta backups deletion. If delta backup is provided as the target, WAL-G will also delete all the dependant delta backups. Behaviour of the previously introduced FIND_FULL is preserved. If FIND_FULL is specified, WAL-G will delete all backups with the same base backup as the target.

Examples:
target base_0000000100000000000000C9 delete the base backup and all dependant delta backups

target base_0000000100000000000000C9_D_0000000100000000000000C4 delete delta backup and all dependant delta backups

target FIND_FULL base_0000000100000000000000C9_D_0000000100000000000000C4 delete delta backup and all delta backups with the same base backup

  1. Add docs and tests

@usernamedt usernamedt force-pushed the delete-target-delta branch 5 times, most recently from 0aeea46 to 72a2de4 Compare March 31, 2021 18:46
Copy link
Collaborator

@munakoiso munakoiso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@usernamedt usernamedt merged commit 6bcccfb into wal-g:master Apr 1, 2021
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.

None yet

2 participants