restore
Restore a Mongo Cluster in place from one of its snapshots
Usage
ionosctl dbaas mongo snapshot restore [flags]Aliases
For mongo command:
[m mdb mongodb mg]For snapshot command:
[snap backup snapshots backups]For restore command:
[r]Description
Roll a MongoDB cluster back in place to the state captured by one of its own snapshots. This overwrites the current data of the cluster identified by --cluster-id with the contents of --snapshot-id (list a cluster's snapshots with snapshot list --cluster-id <id>).
How snapshots accumulate: an initial snapshot is taken when the cluster is created (the initial sync, usually within 24h); another is created after each restore; thereafter a base snapshot is taken every 24h and a full snapshot every Sunday. Snapshots are retained for the last 7 days, so recovery is possible up to a week back. Playground clusters have no snapshots and cannot be restored.
Constraints:
You can only restore from a snapshot whose MongoDB version is the same as, or older (by patch) than, the cluster's current version.
Snapshots are stored in IONOS S3 Object Storage in the cluster's region (eu-central-2 where S3 is unavailable).
Enterprise clusters additionally support point-in-time recovery WITHIN a snapshot's window via the API's recoveryTargetTime; this CLI restore targets a whole snapshot.
Options
Examples
Last updated
