This document describes how to download backup files of TencentDB for MongoDB through the console and CVM.
To download backups with a sub-account, you need to authorize it first. For more information, please see Sub-Account Authorization for Backup Download.
SecretKeyon the Manage API Key page.
TbecxxxxxxxxxxxT4Yw, region code is
ap-guangzhou, and bucket is
mognodb-backup-test-1251937, then the configuration of COSCMD will be as shown below:
coscmd config -a IKIDxxxxxxxxxxx20Eb -s TbecxxxxxxxxxxxT4Yw -b mognodb-backup-test-1251937 -r ap-guangzhou
The private IP of the Linux CVM instance must be within any of the following IP ranges; otherwise, backup files cannot be downloaded.
cmongo_backup/cmgo-pfsumk5l_0/snapshot/1544517026, the command will be as shown below:
coscmd download -r cmongo_backup/cmgo-pfsumk5l_0/snapshot/1544517026 dump/
- A replica set has only one download link.
- Each shard of a sharded cluster has a download link. Different shards need to be stored in different directories so as to prevent the downloaded data from being overwritten.
-rmust be added to the command for downloading folders.