You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Volume Snapshot backup/recovery as a CNPG-I plugin #7341
Is there an existing issue already for this feature request/idea?
I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.
What problem is this feature going to solve? Why should it be added?
Currently, volume snapshot backup and recovery are part of the operator's code. Following the example of Barman Cloud, Volume Snapshots should become a CNPG-I plugin supported by the community.
Describe the solution you'd like
Create a new plugin for volume snapshot backup and recovery. The long-term goal is to get new contributors in the organisation who can take ownership of this component.
Doing so will complete the "backup-agnostic" process of CloudNativePG.
Describe alternatives you've considered
N/A
Additional context
We should seek contributors external to EDB to write this patch through maintainer mentorship/reviews to improve our posture for a long-term graduation goal.
Backport?
No
Are you willing to actively contribute to this feature?
Yes
Code of Conduct
I agree to follow this project's Code of Conduct
Reacted by dosubot, Thomas Way, rafal11ck, Dan Kozytskyi, Papiris, Michael Shen, ryan-grenz-evelyn, LucasPabl0, Lukas Gabriel and tix79a
The original goal of this issue was to implement a plugin for backups based on Kubernetes VolumeSnapshot resources via the CNPG-I plugin interface, including support for recovery. At the same time, we wanted to probe community interest in contributing to such an initiative. Since no contributors came forward, a smaller group of maintainers explored feasibility through a pilot plugin project, mainly as a way to better understand the problem space.
After careful analysis, we have decided to halt the development of this plugin, for the following reasons.
Operator-driven approach: Backups and recovery via volume snapshots are driven by the operator, not the instance manager. Refactoring this to run via the instance manager would have required invasive and ultimately unnecessary changes. The instance itself does not, and should not, have permission to manipulate the storage layer, while at the same time online backups must still be triggered from the instance. Coordinating these two aspects would require introducing new mechanisms just to bridge the gap, adding complexity without real benefit. We also consider it safer and more consistent with Kubernetes principles for the operator to control snapshot capabilities rather than a workload process.
Kubernetes-native alignment: Unlike external backup solutions (such as those integrating via the Barman Cloud plugin), volume snapshots are standard Kubernetes resources. Supporting them directly in-core — rather than via a plugin — is a better fit for our Kubernetes-native design philosophy. In the future, this approach will also extend to VolumeGroupSnapshot.
As a result, we are committed to maintaining volume snapshot support in-core, integrated as part of the operator, and not through the plugin interface. This includes:
Online backup and PITR integration with plugins.
Cold backups for consistent recovery without PITR.
Future support for VolumeGroupSnapshot, building on the work by Leonardo Cecchi in the Kubernetes storage area.
We’re closing this issue accordingly. We should open a new issue to revisit the current documentation on backups as a downstream activity.
Thanks again for the discussion and for helping shape the direction of CloudNativePG.
Reacted by Papiris, Lukas Gabriel, Roger Siegenthaler and Jaycee Lock
Activity
dosubot commentedon Jul 10, 2025
Hi, @gbartolini. I'm Dosu, and I'm helping the cloudnative-pg team manage their backlog. I'm marking this issue as stale.
Issue Summary
Next Steps
Thank you for your understanding and contribution!
d-a-n-k-a commentedon Jul 10, 2025
gbartolini commentedon Sep 10, 2025
The original goal of this issue was to implement a plugin for backups based on Kubernetes
VolumeSnapshotresources via the CNPG-I plugin interface, including support for recovery. At the same time, we wanted to probe community interest in contributing to such an initiative. Since no contributors came forward, a smaller group of maintainers explored feasibility through a pilot plugin project, mainly as a way to better understand the problem space.After careful analysis, we have decided to halt the development of this plugin, for the following reasons.
VolumeGroupSnapshot.As a result, we are committed to maintaining volume snapshot support in-core, integrated as part of the operator, and not through the plugin interface. This includes:
VolumeGroupSnapshot, building on the work by Leonardo Cecchi in the Kubernetes storage area.We’re closing this issue accordingly. We should open a new issue to revisit the current documentation on backups as a downstream activity.
Thanks again for the discussion and for helping shape the direction of CloudNativePG.