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 history-clean command. #7

Merged
merged 12 commits into from
Feb 8, 2024
Merged

Add history-clean command. #7

merged 12 commits into from
Feb 8, 2024

Conversation

woblerr
Copy link
Owner

@woblerr woblerr commented Feb 4, 2024

The history database stores a lot of unnecessary information about failed and/or deleted backups. The history-clean command allows you to clear outdated information about these backups.

For backup-info command the --show-deleted and --show-failed flags were renamed to --deleted and --failed. It's necessary for reusing this flags in other commands.

Fixed the missing update history file for the yaml database format when only part of the backup list was deleted.

Rename --show-deleted and --show-failed flags to --deleted and --failed. It's necessary for reusing this flags in other commands.
Add backup samples with include tables and include schemas. Add more failed backup samples with different dates.
Update flags in e2e tests and docs.
At the moment, this works only for the sqlite db format.
@woblerr woblerr added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 4, 2024
@woblerr woblerr self-assigned this Feb 4, 2024
@woblerr woblerr marked this pull request as ready for review February 7, 2024 21:40
In current implementation, there are cases where some backups were deleted, and some were not.
Foe example, the clean command was executed without --cascade option. In this case - metadata backup was deleted, but full + incrementals - weren't. we should update the history file even it error occurred.
@woblerr woblerr merged commit d4e1ea2 into master Feb 8, 2024
6 checks passed
@woblerr woblerr deleted the history-clean branch February 8, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant