How to manage MongoDB® Database snapshots
Snapshots allow you to restore data in a new Database Instance.
You can have up to 100 snapshots per Instance and project (depending on quotas).
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- A MongoDB® Database Instance
How to create snapshots
- Go to the Snapshots tab of your Database Instance of choice.
- Click + Create snapshot. A pop-up displays.
- Enter a name for your snapshot and set up the expiration date and time.
- Click Create snapshot to confirm.
How to create a Database Instance from a snapshot
You can restore the data contained in a snapshot to a Database Instance. When you do so, a new Database Instance is created and billed to your account.
-
Go to the Snapshots tab of your Database Instance of choice.
-
Click the more icon next to the name of the snapshot.
-
Click Create Database Instance from snapshot. A pop-up appears.
-
Enter a name for your new Instance.
-
Choose a node type.
-
Select a replica set configuration. You can choose between:
- Replica-set 1-node - an instance of MongoDB® that runs as a single server and does not provide redundancy or high availability.
- Replica-set 3-nodes - a group of 3 MongoDB® servers (1 primary and 2 standby nodes) that maintain the same data set. Replica sets provide redundancy and high availability and are the basis for all production deployments. If the main node fails for any reason, one of the remaining standby nodes is assigned and can take over requests, reducing downtime.
-
Review the estimated cost.
-
Click Create Instance to confirm.
You can see the new Instance in your Database Instances list.
How to delete snapshots
When you delete a Database Instance, the associated snapshots are not deleted. Snapshots will be deleted after the retention period defined.
If you do not wish to wait for the snapshot to expire, you can delete it manually.
- Go to the Snapshots tab of your Database Instance of choice.
- Click more icon next to the name of the snapshot.
- Click Delete. A pop-up displays to warn you that:
- Type DELETE and click Delete snapshot if you wish to continue.