Hi folks,
I’m working on implementing a selective logical backup for a relatively small collection in our MongoDB cluster managed by the Operator.
Context:
-
We have a cluster with two collections:
-
One large collection (~100GB)
-
One small collection (<1GB)
-
-
We already run daily physical backups of the entire cluster using the Operator.
-
Now, I need to set up an hourly backup for just the small collection to support a more frequent recovery point.
What I’ve Found:
-
Percona Backup for MongoDB (PBM) supports logical backups with namespace filtering (
--ns
), which seems perfect for backing up specific collections. Make a selective backup - Percona Backup for MongoDB -
However, I’m unclear on how to trigger this kind of selective backup via the Operator’s Custom Resource (CR).
Questions:
-
Is it possible to define a
PerconaBackup
CR that targets only specific collections using thens
field orselective
instruction (like restore)? -
Are there any examples or best practices for scheduling such backups other way?
Any guidance, examples, or caveats would be greatly appreciated!
Thanks in advance