SecretKeyon the API Key Management 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
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.