How to get pbm to recognize TWO different replicaSets for backup?

Hi @Tim_Heckel,

It is not designed to use the same storage for more than one cluster at a time.
PBM uses replset names to map backup’ replset/shard and target/running replset/shard (e.i. “restore rs0 data to the running rs0 shard/replset”).

I think, the following link can help you: Running Percona Backup for MongoDB — Percona Backup for MongoDB 1.8 Documentation .
(NOTE: The --replset-remapping flag is available for the following commands: pbm restore , pbm list , pbm status)

try pbm status --replset-remapping="sb0=cfg" # or "cfg=sb0"

Also take a look at usage example Moving MongoDB Cluster to a Different Environment with Percona Backup for MongoDB - Percona Database Performance Blog

1 Like