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

Make BACKUP_ID optional when performing PITR with barman-cloud-restore #1013

Open
gbartolini opened this issue Sep 10, 2024 · 1 comment
Open

Comments

@gbartolini
Copy link
Contributor

Currently, barman-cloud-restore requires a backup ID when performing a recovery. While this is fine, having an automated way for Barman to determine the start backup ID based on a requested target would simplify the code of client applications like CloudNativePG.

For example, this is what CloudNativePG is currently doing: https://github.com/cloudnative-pg/cloudnative-pg/blob/74886c384d318603a4cc4a96aa61b1a0f33e2584/pkg/management/catalog/catalog.go#L102

Would it be possible to have barman-cloud-restore bring that functionality inside?

@martinmarques
Copy link
Contributor

I think we'll be making this a feature in barman, which will slip into barman-cloud. This is something that has been bugging me for a long time, especially when I see users recover with a backup that is not suitable for the recovery time selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants