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 #913

Merged
merged 6 commits into from Mar 30, 2021
Merged

Delete target backup #913

merged 6 commits into from Mar 30, 2021

Conversation

usernamedt
Copy link
Member

@usernamedt usernamedt commented Mar 29, 2021

Add functionality to delete target backup for Postgres

User can specify the target for deletion via backup name or user data:

wal-g delete target base_0000000100000000000000C4 // delete base backup specified by name
wal-g delete target --target-user-data "{ \"x\": [3], \"y\": 4 }"	//delete backup specified by user data

When deleting full backup, all dependant increment backups will be deleted too.

Deleting the incremental backup is disabled by default, but can be enabled via --find-full flag:

wal-g delete target base_0000000100000000000000C9_D_0000000100000000000000C4 --find-full

In this case, wal-g will search for the base backup and will delete the base backup and all dependant increments.

@usernamedt usernamedt force-pushed the delete-target-backup branch 3 times, most recently from a99ae51 to f31ea9c Compare March 29, 2021 18:08
Copy link
Collaborator

@g0djan g0djan left a comment

Choose a reason for hiding this comment

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

LGTM

@g0djan g0djan merged commit 8deea0f into wal-g:master Mar 30, 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