Skip to content

For help, click the link below to get free database assistance or contact our experts for personalized support.

About backups

You can back up your data in two ways:

  • On-demand. You can do them manually at any moment.
  • Scheduled backups. Configure backups and their schedule in the deploy/cr.yaml . The Operator makes them automatically according to the specified schedule.

To make backups and restores, the Operator uses the Percona Backup for MongoDB (PBM) tool. The Operator runs PBM as a sidecar container to the database Pods. It configures PBM in the following cases:

Backup storage

You can store Percona Server for MongoDB backups outside the Kubernetes cluster using the following remote backup storages:

image

Multiple backup storages

Starting with version 1.20.0, the Operator natively supports multiple backup storages , inheriting this feature from Percona Backup for MongoDB (PBM). This means you don’t have to wait till the Operator reconfigures a cluster after you select a different storage for a backup or a restore. And you can make a point-in-time recovery from any backup stored on any storage - PBM and the Operator maintain the data consistency for you.

Find more information in the Multiple storages for backups chapter.

Backup types

The Operator can do either logical or physical backups.

  • Logical backup means querying Percona Server for MongoDB for the database data and writing the retrieved data to the remote backup storage.

  • Physical backup means copying physical files from Percona Server for MongoDB dbPath data directory to the remote backup storage.

Logical backups use less storage, but are much slower than physical backup/restore.

Warning

Logical backups made with the Operator versions before 1.9.0 are incompatible for restore with the Operator 1.9.0 and later. That is because Percona Backup for MongoDB 1.5.0 used by the newer Operator versions processes system collections Users and Roles differently . The recommended approach is to make a fresh backup after upgrading the Operator to version 1.9.0.


Last update: 2025-04-25