PBM with two instances

Hello, I have two mongodb database instances on the same server. Ports 21017 and 21018.
How do I configure pbm to backup to S3?

Hello Samir,

I have two mongodb database instances on the same server. Ports 21017 and 21018.
How do I configure pbm to backup to S3?

You can refer to the remote backup configuration section:- Set up and configure - Percona Backup for MongoDB for taking backups in S3 OR S3 compatible systems such as Google cloud storage (Bucket) etc.

For a complete setup guide of PBM in Mongo ReplicaSet/Shard environment you can refer to the below manual.

Let us know if you still having any further concerns!

Regards,
Anil

You will need a dedicated pbm-agent for each mongod process running. You can clone the existing systemd service and change the configuration to deploy a 2nd service. Doc linked above should be helpful