Example policy - Sharded MongoDB cluster
This example describes how to create a policy to back up the primary configuration server in a Sharded MongoDB cluster.
To add a policy for a MongoDB cluster backup
- On the left, select Protection > Policies.
- Select the Policies tab.
- Click Add.
- On the Attributes tab, select the following:
Policy type: BigData
- On the Schedules tab, configure all the necessary schedules. For example, Full and incremental schedules.
Name
Type
Frequency
Retention
Full-backup
Full backup
1 week
2 weeks
Incremental-backup
Differential incremental backup
1 day
2 weeks
- On the Clients tab, add the client name. Use the format
MongoDBNode-portnumber.The following list backs up the primary configuration server on port 1.
Client name
Hardware
Operating system
primaryconfigserver-01
Linux
Red Hat 2.6.32
- On the Backup selections tab, add the application type, the backup hosts, and manually add the ALL_DATABASES directive.
Backup selection list
Notes
Application_Type=mongodb
The parameter values are case-sensitive.
mongodbhost=mongodbhost.domain.com
Use the format
Backup_Host=<FQDN_or_hostname>. The backup host can be a NetBackup client or a media server.ALL_DATABASES
- Click Create.