talira

Barman Cloud Plugin

The reference CNPG-I backup/restore plugin for Barman Cloud

open sourceApache-2.0self-hostablefree

The Barman Cloud Plugin is the CNPG-I plugin that gives CloudNativePG clusters continuous physical backups to object storage with Barman's barman-cloud tools: online base backups, WAL archiving, WAL restore and full cluster recovery, with retention policies, to Amazon S3, Azure Blob Storage, Google Cloud Storage or compatible stores. CloudNativePG deprecated its built-in Barman Cloud support in 1.26 and removes it from 1.32, so the plugin is how its clusters back up to object storage from then on. It's installed separately, in the operator's namespace, needs CloudNativePG 1.30 or later and cert-manager (or your own certificates), and is Apache-2.0, part of the CloudNativePG project under the CNCF.

Problems it solves

  • continuous backups of a Postgres cluster running on Kubernetes to an S3 bucket
  • our CloudNativePG upgrade warns that barmanObjectStore backups are deprecated
  • restore a Kubernetes-hosted Postgres cluster from object storage after losing the namespace
  • archive Postgres WAL from Kubernetes to Azure Blob Storage or Google Cloud Storage
  • keep two weeks of Postgres backups in object storage and prune the rest automatically
  • authenticate Postgres backups to S3 with IAM roles for service accounts on EKS instead of access keys
  • bootstrap a new Postgres cluster on Kubernetes from another cluster's backups
  • point-in-time recovery for a Postgres cluster running on Kubernetes
  • a replica Postgres cluster in another Kubernetes cluster that restores WAL from the primary's archive
  • send Kubernetes Postgres backups to Hetzner or another S3-compatible object store
  • compress Postgres WAL and base backups before they go to the bucket

Features

  • physical online backup and restore of the data directory
  • WAL archiving and WAL restore
  • full cluster recovery from object storage
  • point-in-time recovery
  • bootstrap and WAL restore for replica clusters
  • reads backups made with CloudNativePG's built-in barmanObjectStore support
  • retention policies
  • Amazon S3, Azure Blob Storage, Google Cloud Storage and S3- or Azure-compatible stores
  • Azure AD managed identity and GKE Workload Identity authentication
  • S3 authentication with IAM Roles for Service Accounts (IRSA) or access keys
View 4 more
  • ObjectStore custom resource for the connection to the bucket
  • compression options
  • migration guide from CloudNativePG's built-in backups
  • observability metrics

Alternatives

The same job

These do what Barman Cloud Plugin does.

  1. Barman Backup and Recovery Manager for PostgreSQL
  2. WAL-G Archival and restoration for databases in the cloud
  3. Databasus PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
  4. pgBackRest Reliable PostgreSQL backup and restore

Compare Barman Cloud Plugin with the top 3