Skip to content

Conversation

@jcechace
Copy link
Collaborator

@jcechace jcechace commented Dec 5, 2025

PBM-1663 Powered by Pull Request Badge

  • Supports pbm list --profile=abc for which only backups in abc profile are listed, PITR section is entirely omitted (regardless of PITR state or chunks in the default storage)
  • Supports pbm status --profile=abc for which it only lists backups in abc profile, only affects the "backups" section of the status, everything else is unchanged
  • Test for BackupList

@jcechace jcechace changed the title PBM-1663 profile ux 02 PBM-1663: Support profile flags for list and status commands Dec 5, 2025
@jcechace jcechace marked this pull request as draft December 5, 2025 08:31
@jcechace jcechace marked this pull request as ready for review December 5, 2025 12:24
@jcechace
Copy link
Collaborator Author

jcechace commented Dec 5, 2025

@boris-ilijic This should be ready for review

Copy link
Member

@boris-ilijic boris-ilijic left a comment

Choose a reason for hiding this comment

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

LGTM, although there is small issue in PITR UI.

Also, we cannot filter only by main storage, which can be useful, but we can add that later also.

s.Path = cfg.Storage.Path()

bcps, err := pbm.GetAllBackups(ctx)
bcps, err := backup.BackupsList(ctx, conn, profile, 0)
Copy link
Member

Choose a reason for hiding this comment

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

This filtered backup list doesn't contain base backups for PITR, and then PBM shows something like:

pbm s --profile s3

 Snapshots:
    2025-12-05T13:29:01Z 270.03KB <logical, s3> success [restore_to_time: 2025-12-05T13:29:05]   
  PITR chunks [7.51MB]:
    2025-12-05T13:25:32 - 2025-12-05T16:00:52
    2025-12-05T13:24:29 - 2025-12-05T13:25:31 (no base snapshot) <--

The best should be to omit the list of PITR in case of --profile, so the same as we do for list. Or pass down the full list of backups, so that it's possible to make that resolution.

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.

2 participants