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?