Available in VPC
In Backup, you can check the backup information configured per server for safe storage of cache data for users using Cloud DB for MongoDB. Also, when the cache data is damaged due to a failure, you can perform restoration using the backup file that was in storage. To use the backup and restoration, it is recommended to first understand the basic execution rules for the backup provided by Cloud DB for MongoDB. The basic backup execution rules are as follows:
-
Backup execution methods
- Performed daily, once a day.
- Backup starts within 15 minutes after the user-selected time.
- Exceptional situations
- If the backup from the previous day is still being performed due to a large backup size, the backup schedule for that day is skipped
- Since the admin Database includes system collection and internal logic, it is excluded from backup
- You must avoid storing user data in the admin Database
- Exceptional situations
-
Backup file
- Retention period: Can be retained for up to 30 days based on user settings.
- Storage location: Stored in separate data storage (storage contracts depend on backup file size).
- You can also receive the data of the Cloud DB for MongoDB by running mongodump in the application server or can restore the received files in the Cloud DB for MongoDB by running mongorestore.
- Cloud DB for MongoDB performs backup by the mongodump method. It is a method that scans collection data for 1 document at a time, so the time difference by data may occur upon recovery due to the difference in point in time of scans.
Backup interface
The basics of using backups are as follows:

| Component | Description |
|---|---|
| ① Menu name | The name of the current menu. |
| ② Basic features | Check details for Cloud DB for MongoDB, refresh the Backup interface. |
| ③ Backup list | Configured backup settings per server and settings information. |
Check backup settings list
You can check the backup settings list per MongoDB server in operation. To view the backup settings list:
- In the VPC environment of the NAVER Cloud Platform console, navigate to Menu > All services > Database > Cloud DB for MongoDB.
- Click the Backup menu.
- When the backup settings list appears, check the required information.
- DB service name: Service name specified by the user
- Backup retention date: Maximum number of days for the backup file to be stored in data storage.
- Backup start time: Time at which the backup is performed once a day.
- Backup data size: Size of the completed backup file.
- Latest succeeded backup date: Date for the latest backup that was performed.
- View details: Details and restoration of the backup file list created per server, saved to Object Storage.
Check backup file list per server
To check the backup file list created for each server after completing the backup:
- In the VPC environment of the NAVER Cloud Platform console, navigate to Menu > All services > Database > Cloud DB for MongoDB.
- Click the Backup menu.
- Click [Details] from View details of the backup settings row you want to check the details for.
- Check the details for the backup file.
- Backup date: Date that the backup was performed.
- Shard (replica set): Shard that performed the backup
- Backup start time: Time when the backup was started.
- Backup completion time: Time when the backup was completed.
- Backup speed: Number of collections to be backed up concurrently.
- Elapsed time: Time it took for the backup to be completed.
- Backup size: Size of the created backup file upon completion of backup
- Data storage: Data storage usage of the shard that performed the backup
- You can check the required storage size when you need to perform a restoration using the backup.
Restoration
Cloud DB for MongoDB provides a service that enables you to restore lost data using backup files, and easily and quickly create a MongoDB server. It allows the user to restore the data up to the desired time within the range available for recovery. To restore:
- In the VPC environment of the NAVER Cloud Platform console, navigate to Menu > All services > Database > Cloud DB for MongoDB.
- Click the Backup menu.
- Click [Details] in the backup settings row you want to restore.
- Select the item to restore and click [Restore Backup file].

- When the Restore Backup popup appears, check or enter the required information for restoration
- Backup time: Checks the backup completion time
- MongoDB Cluster Type: Select the type of the MongoDB cluster.
- Server generation: Select the generation of the MongoDB server to restore.
- If the original MongoDB server is G2, you can select either G2 or G3.
- If the original MongoDB server is G3, selection is not available (fixed to G3).
- DB Server name: Enter the name of the MongoDB server to restore.
- Enter between 3 and 15 characters using English letters, numbers, and hyphens (-).
- Duplicate names are not allowed.
- Random text is added to avoid duplicate host names.
- DB service name: Enter the DB service name for the restored DB.
- Enter between 3 and 15 characters using Korean letters, English letters, numbers, and hyphens (-).
- Data storage type: Checks the type of data storage to restore
- Set the following items depending on the selected cluster type:
- If you've selected stand-alone for the cluster type, set the following items:
- Stand-Alone Server spec: Select the specifications for the stand-alone server.
- Port: Enter the port number for the stand-alone server between 10000 and 65535.
- Default: 17017.
- The default MongoDB port number of "27017" is not recommended due to security vulnerabilities.
- If you've selected Single replica set for the cluster type, set the following items:
- Number of members per replica set (primary & secondary): Select the number of member servers in each shard (3 to 7 including the arbiter server).
- Member Server spec: Select the specifications of the member server.
- Number of arbiters per replica set: Select the number of arbiter servers per shard (0-1 unit).
- Arbiter Server spec: Select the specifications of the arbiter server.
- Port: Enter the port number for each server between 10000 and 65535.
- Default: 17017.
- The default MongoDB port number of "27017" is not recommended due to security vulnerabilities.
- If you've selected Sharding for the cluster type, set the following items:
- Number of members per replica set (primary & secondary): Select the number of member servers in each shard (3 to 7 including the arbiter server).
- Member Server spec: Select the specifications of the member server.
- Number of arbiters per replica Set: Select the number of arbiter servers per shard (0-1 unit).
- Arbiter Server spec: Select the specifications of the arbiter server.
- Number of shards: Select the number of shards.
- 2 or 3 can be selected upon initial installation.
- Up to 5 shards can be added in the management interface after installation.
- If you need more than 5 Shards, contact Customer support.
- Number of Mongos (router) Servers: Select the number of Mongos Servers (2-5 units).
- Mongos Server spec: Select the spec of the Mongos server.
- Number of config servers: Check the number of config servers (3 fixed units).
- Config server spec: Select the specifications of the config server.
- Port: Enter the port number for each server between 10000 and 65535.
- Default: 17017.
- The default MongoDB port number of "27017" is not recommended due to security vulnerabilities.
- Click [Restore].
- Click [OK].
- Click the DB Server menu.
- Check the status of the server restoration.
- Creating: Status in which the MongoDB is being created (restored) with the information entered by the user
- Configuring: Status in which the MongoDB server is being created (restored) for configuration with the information entered by the user
- Operating: Status in which the creation (restoration) and configuration of the MongoDB server has been completed with the information entered by user, and access to the MongoDB from the application servers is available
- Server restoration may take some time (minutes) to complete.
- When recovering from a backup, the admin user and DB user accounts from the original cluster are not recovered.
- To access the configured DB service using the restore feature, you must reset the password for the newly created Admin User during the restoration process.
Store in Object Storage
In Cloud DB for MongoDB, you can store the created backup files in Object Storage and use them when performing backup. To save a stored backup file to Object Storage:
Object Storage is a service with additional charges. For more information about Object Storage and pricing, see Services > Storage > Object Storage on the NAVER Cloud Platform portal.
- In the VPC environment of the NAVER Cloud Platform console, navigate to Menu > All services > Database > Cloud DB for MongoDB.
- Click the Backup menu.
- Click [Details] in the backup settings row for the backup file you want to save to Object Storage.
- Click [Send to Object Storage].

- When the Send to Object Storage popup appears, click and select the bucket you want to save into.

- Click [Send to Object Storage].
- Click [OK].
- When exporting to Object Storage, unlocking bucket, appropriate access control, and ACL settings are required.
- For the Japan Region, disable access control settings for the Object Storage bucket.
- Exporting to Object Storage may take a certain amount of time (minutes) to be completed.