Skip to content

[Feature]: Volume Snapshot backup/recovery as a CNPG-I plugin #7341

Closed as not planned

Description

@gbartolini

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

Activity

  1. self-assigned this
    on Apr 10, 2025
  2. added theissue type on Apr 10, 2025
  3. moved this to Todo in Roadmapon Apr 10, 2025
  4. added this to the 1.28.0 milestone on Apr 10, 2025
  5. added
    enhancement 🪄
    on Apr 10, 2025
  6. dosubot commented on Jul 10, 2025

    @dosubot

    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

    • Proposal to develop a new plugin for volume snapshot backup and recovery.
    • Aim to separate this functionality from the core code to encourage community contributions.
    • You expressed willingness to contribute and suggested involving external contributors.
    • No comments or activity have occurred on this issue yet.

    Next Steps

    • Is this issue still relevant to the latest version of the cloudnative-pg repository? If so, please comment to keep the discussion open.
    • If there is no further activity, the issue will be automatically closed in 7 days.

    Thank you for your understanding and contribution!

  7. d-a-n-k-a commented on Jul 10, 2025

    @d-a-n-k-a
  8. gbartolini commented on Sep 10, 2025

    @gbartolini
    ContributorAuthor

    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.

  9. moved this from Todo to Done in Roadmapon Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement 🪄epic

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions