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 local backups support for backup-delete command. #15

Merged
merged 11 commits into from
Jun 4, 2024

Conversation

woblerr
Copy link
Owner

@woblerr woblerr commented Jun 2, 2024

Added local backups support for backup-delete command.
Added --backup-dir, --parallel-process and --ignore-errors flags for backup-delete command.

For local backups the following logic are applied:

  • If the --backup-dir option is specified, the deletion will be performed in provided path.
  • If the --backup-dir option is not specified, but the backup was made with --backup-dir flag for gpbackup, the deletion will be performed in the backup manifest path.
  • If the --backup-dir option is not specified and backup directory is not specified in backup manifest, the deletion will be performed in backup folder in the master and segments data directories.
  • If backup is not local, the error will be returned.

For non local backups the following logic are applied:

  • If the --plugin-config option is specified, the deletion will be performed using the storage plugin.
  • If backup is local, the error will be returned.

Updated e2e tests with gpbackup-s3-plugin. Starting from 25.05.2024, all Greenplum repositories (including gpbackup-s3-plugin) were transferred to the archive on GitHub. At the same time, all tags have been deleted from the archives. Switched to my fork for testing.

Added update mechanism for history file when some errors occurred. Previously, the status did not change when an error occurred.

Refactoring backup-delete command to add functionality to delete local backups.
Add parallel-process flag for backup-delete command.
Switch for non public method for deleter interface.
@woblerr woblerr added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 2, 2024
@woblerr woblerr self-assigned this Jun 2, 2024
Starting from 25.05.2024, all Greenplum repositories (including gpbackup-s3-plugin) were transferred to the archive on GitHub. At the same time, all tags have been deleted from the archives.
Switched to my fork for testing.
@woblerr woblerr marked this pull request as ready for review June 2, 2024 20:43
Add updates for history file when some errors occurred. Previously, the status did not change when an error occurred.
Remove debug message.
@woblerr woblerr merged commit 8848226 into master Jun 4, 2024
6 checks passed
@woblerr woblerr deleted the backup_delete_local branch June 4, 2024 19:03
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.

None yet

1 participant