Skip to content

Add database filters to gpbackman commands. - #113

Merged
MisterRaindrop merged 7 commits into
apache:mainfrom
woblerr:add_db_filter
Sep 1, 2026
Merged

Add database filters to gpbackman commands.#113
MisterRaindrop merged 7 commits into
apache:mainfrom
woblerr:add_db_filter

Conversation

@woblerr

@woblerr woblerr commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Adds --database option:

  • backup-clean — deletes backups only for specified database.
  • history-clean — removes deleted backup only for specified database.
  • backup-info — displays backups only for specified database.

Database names are matched exactly and case-sensitively. Without --database, the commands continue to process all databases.

For backup-info, --database cannot be used together with --timestamp.

Related issue: #112 (comment)

@woblerr woblerr self-assigned this Aug 31, 2026
@woblerr woblerr added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 31, 2026
@tuhaihe
tuhaihe requested a review from MisterRaindrop August 31, 2026 09:18
@MisterRaindrop
MisterRaindrop merged commit 682202c into apache:main Sep 1, 2026
11 checks passed
@woblerr
woblerr deleted the add_db_filter branch September 1, 2026 07:36
tuhaihe pushed a commit to tuhaihe/gpbackup that referenced this pull request Sep 1, 2026
Add the --database option to backup-clean, history-clean, and backup-info.

Database names are matched exactly and case-sensitively against backup
history. When the option is omitted, the existing all-database behavior
is preserved.

Disallow combining --database with --timestamp in backup-info, and add
unit tests, end-to-end coverage, and command documentation.
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.

2 participants