- Print
- PDF
Backup
- Print
- PDF
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
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
- Backups are performed within 15 minutes from the time selected by the user
- 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 stored up to 30 days according to the user settings
- Storage location: a separate data storage (storage contracts are made according to the 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 page
The basics of using the backup are as follows:
Area | Description |
---|---|
① Menu name | Name of the menu currently being viewed |
② Basic features | Check details for Cloud DB for MongoDB, refresh the Backup page |
③ 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 check the backup settings list, take the following steps:
- In the VPC environment of NAVER Cloud Platform console, click Services > Database > Cloud DB for MongoDB in order.
- 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 period: 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 successful 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, take the following steps:
- In the VPC environment of NAVER Cloud Platform console, click Services > Database > Cloud DB for MongoDB in order.
- 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
- 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 it, take the following steps:
- In the VPC environment of NAVER Cloud Platform console, click Services > Database > Cloud DB for MongoDB in order.
- 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 pop-up window appears, check or enter the required information for restoration
- Backup time: check the backup completion time
- MongoDB Cluster Type: select the MongoDB cluster type
- DB server name: enter the name of the MongoDB server to restore
- The name must be 3-15 characters long and can only include Korean letters, English letters, numbers, and hyphens (-)
- Duplicate names are not allowed
- Random text will be added to avoid duplicate host names.
- DB service name: enter the DB service name for the restored DB
- The name must be 3-15 characters long and can only include Korean letters, English letters, numbers, and hyphens (-)
- Set the following items depending on the selected cluster type:
- If you've selected Stand-alone for the cluster type, then 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-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, then 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 for the member servers
- Number of arbiters per replica set: select the number of arbiter servers per shard (0-1 unit)
- Arbiter server spec: select the specifications for arbiter servers
- port: enter the port number for each server between 10000-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, then 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 for the member servers
- Number of arbiters per replica set: select the number of arbiter servers per shard (0-1 unit)
- Arbiter server spec: select the specifications for arbiter servers
- 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 page after installation
- If you need more than 5 shards, then make an inquiry to Customer Support
- Number of Mongos (Router) Servers: select the number of mongos servers (2-5 units)
- Mongos Server Spec: select the specifications for the mongos servers
- Number of Config Servers: check the number of config servers (3 fixed units)
- Config Server Spec: select the specifications for the config servers
- port: enter the port number for each server between 10000-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 being restored.
- 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 configured after being created (restored) with the information entered by the user
- Running: status in which the creation (restoration) and configuration of the MongoDB server has been completed with the information entered by the user, and access to MongoDB from the application servers is available
- The completion of the server restoration may take a certain amount of time (minutes).
- When restoring from a backup, the admin user and DB user accounts from the original cluster are not restored.
- To access the configured DB service using the restore function, 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, take the following steps:
Additional fees apply when you subscribe to Object Storage. For information on Object Storage and its pricing plans, see Services > Storage> Object Storage in NAVER Cloud Platform portal.
- In the VPC environment of NAVER Cloud Platform console, click Services > Database > Cloud DB for MongoDB in order.
- 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 window appears, click and select the bucket you want to save into.
- Click [Send to Object Storage].
- Click [OK].
- When sending 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.
- Sending to Object Storage may take a certain amount of time (minutes) to be completed.