-
Notifications
You must be signed in to change notification settings - Fork 111
PBM-1663: Support profile flags for list and status commands #1233
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
base: dev
Are you sure you want to change the base?
Conversation
|
@boris-ilijic This should be ready for review |
boris-ilijic
left a comment
There was a problem hiding this 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) |
There was a problem hiding this comment.
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.
pbm list --profile=abcfor which only backups inabcprofile are listed, PITR section is entirely omitted (regardless of PITR state or chunks in the default storage)pbm status --profile=abcfor which it only lists backups inabcprofile, only affects the "backups" section of the status, everything else is unchangedBackupList