> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-monitoring-and-management/3/llms.txt).

# MongoDB backup prerequisites

PBM version compatibility

PMM requires Percona Backup for MongoDB (PBM) 2.0.1 or later. Check the [PBM compatibility matrix](https://docs.percona.com/percona-backup-mongodb/latest/details/versions.html) to select a PBM version that supports your MongoDB or Percona Server for MongoDB version.

Before creating MongoDB backups, make sure to:

1. Check that **Backup Management** is enabled and the Backup option is available on the side menu. If Backup Management has been disabled on your instance, go to **Configuration > Settings > Advanced Settings**, re-enable **Backup Management** then click **Apply changes**.

1. [Prepare and create a storage location for your backups](https://docs.percona.com/percona-monitoring-and-management/3/backup/prepare_storage_location.md).

1. Check that [PMM Client](https://docs.percona.com/percona-monitoring-and-management/3/install-pmm/install-pmm-client/index.md) is installed and running on all MongoDB nodes in the cluster.

1. Check that [Percona Backup for MongoDB](https://docs.percona.com/percona-backup-mongodb/latest/index.html) (PBM) is installed and `pbm-agent` is running on all MongoDB nodes in the replica set. Make sure to [configure the MongoDB connection URI for pbm-agent](https://docs.percona.com/percona-backup-mongodb/latest/install/configure-authentication.html#set-the-mongodb-connection-uri-for-pbm-agent) on all nodes.

   Let PMM manage PBM

   PMM configures PBM for you. Run `pbm` commands yourself only for tasks that PMM can’t do, such as [restoring a sharded cluster backup](https://docs.percona.com/percona-monitoring-and-management/3/backup/mongodb-backup/restore_MongoDB_backups.md#restoring-from-a-sharded-cluster). Changing the PBM configuration manually can break PMM backups.

1. Check that installed **mongod** binary is added to **PATH** variable of the user under which PMM client is running, and that **mongod** is controlled as a service by **systemctl**. PMM only works with a single **mongod** installed on a node.

1. Check that your MongoDB Services are managed as clusters in PMM. Go to **Inventory > Services**, turn on **Organize by Clusters**, and make sure that none of your MongoDB services appear under **Non-clustered services**. Services that do not specify a cluster name should be removed and re-added using commands like the following:

   ```
   pmm-admin add mongodb \
      --username=pmm_mongodb --password=password \
      query-source=profiler --cluster=mycluster
   ```

1. Check that MongoDB nodes are members of replica set.

1. Check that you set the [required permissions for creating and restoring MongoDB backups](https://docs.percona.com/percona-monitoring-and-management/3/install-pmm/install-pmm-client/connect-database/mongodb.md#create-user-and-assign-created-role).

1. Verify the [MongoDB supported configurations and limitations](https://docs.percona.com/percona-monitoring-and-management/3/backup/mongodb-backup/mongodb_limitations.md).
