Overview
This section uses the Linux operating system as an example to describe how to restore the downloaded backup file of a cluster to your on-premises database. For details about how to download backup files, see Downloading Backup Files.
Precautions
- This method applies only to cluster instances.
- Only DDS 3.4 and 4.0 instances can be restored in this method. DDS 4.2 does not support this method.
- The directories, IP addresses, and ports provided in the example are for reference only. Configure these items based on your service requirements.
- There is one backup file of the configsvr node and multiple backup files of the shardsrv node. The number of backup files depends on the number of shardsvr nodes.
- After the backup file is downloaded, decompress the file using LZ4. Command for reference: lz4 -d $1 | tar -xC $2
$1: indicates the downloaded backup file.
$2: indicates the directory to which the backup file is decompressed.
- For details about how to migrate data at the database or collection level, see Migrating Data Using mongodump and mongorestore.
Prerequisites
MongoDB client 3.4 or 4.0 has been installed on your on-premises database.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot