Selective Backup Using Percona Operator

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:

  1. Is it possible to define a PerconaBackup CR that targets only specific collections using the ns field or selective instruction (like restore)?

  2. 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 :raising_hands:

Hi, selective restore is possible but only full backups are supported at this time when using the Operator. Please check out Restore from a previously saved backup - Percona Operator for MongoDB for instructions.

For selective backup I suggest you open a FR if you think it’s also valuable to have in Operator.

1 Like

Thanks @Ivan_Groenewold I’ve created the FR Jira

1 Like