- API >
- Public API Resources >
- Snapshot Schedule
Snapshot Schedule¶
On this page
This resource allows you to view and configure various properties of snapshot creation and retention for a replica set or cluster.
Endpoints¶
Get the Snapshot Schedule¶
Get the snapshot schedule for a cluster. CLUSTER-ID
must be the ID of
either a replica set or a sharded cluster.
Update the Snapshot Schedule¶
Change the parameters of snapshot creation and retention. Any combination of the snapshot schedule’s attributes can be modified.
Sample Entity¶
Entity Fields¶
Name | Type | Description |
---|---|---|
groupId |
string | ID of the group that owns the backup configuration. |
clusterId |
string | ID of the cluster to which this backup configuration applies. |
snapshotIntervalHours |
number | Number of hours between snapshots. Supported values are 6, 8, 12, and 24. |
snapshotRetentionDays |
number | Number of days to keep recent snapshots. Supported values are 1 - 5. |
clusterCheckpointIntervalMin |
number | Number of minutes between successive cluster checkpoints. This only applies to sharded clusters. This number determines the granularity of point-in-time restores for sharded clusters. Supported values are 15, 30, or 60. |
dailySnapshotRetentionDays |
number | Number of days to retain daily snapshots. Supported values are 1 - 365. |
weeklySnapshotRetentionWeeks |
number | Number of weeks to retain weekly snapshots. Supported values are 1 - 52. |
monthlySnapshotRetentionMonths |
number | Number of months to retain monthly snapshots. Supported values are 1 - 36. |
pointInTimeWindowHours |
number | The number of hours in the past for which a point-in-time snapshot can be created. |
Links¶
Relation | Description |
---|---|
self |
Me |
http://mms.mongodb.com/cluster |
The cluster that this backup configuration is for. |
http://mms.mongodb.com/group |
The group that owns this backup configuration. |
http://mms.mongodb.com/backupConfig |
The backup configuration that this schedule belongs to. |