Please check whether the following requirements are met:
For more information, please see COSCMD.
No.
COSCMD automatically converts uppercase letters to lowercase ones. A bucket name can only contain lowercase letters, numbers, and hyphens (-), with a length not greater than 50 characters. For more information, see Specifications and Limits.
Yes. You need to use the --ignore /folder/*
parameter.
For example, if you want to exclude a folder during download, use coscmd download --ignore /folder/*
to filter out the files in the folder. If you want to ignore files with a certain suffix in the folder, be sure to append ,
to the "*" character, or enclose it with ""
.
Configure an appropriate value for MAX_THREAD
, which defaults to 5. The number of threads depends on the server performance, and generally, setting its value to 30 can easily take up full bandwidth. For example, you can set the number of concurrent threads to 30 by running the following command:
coscmd config -m 30
No. You need to use the following command format for download:
coscmd download prefix/ localpath/ -r
list
command to list files by file upload time in COSCMD?No. You can list files by specifying a prefix. For more information, please see COSCMD.
You can configure only the bucket under one account in the cos.conf
configuration file. If you need to manage a bucket under another account, switch to the bucket first by using the following command:
coscmd config -a SecretID -s SecretKey -b BucketName-APPID -r region
SecretID
and SecretKey
can be obtained in the CAM console. BucketName-APPID
indicates the bucket name, and region
indicates the region where the bucket resides.
You can configure only one bucket in the COSCMD configuration file. If you need to manage another bucket, specify the bucket name and region COSCMD command for bucket switching.
-b <bucketname-appid>
parameter to specify the bucket name, which must be formatted as BucketName-APPID
.-r <region>
parameter to specify the region where the bucket resides.No. If you upload a file whose name is duplicated with that of an existing file, COSCMD will overwrite the existing file.
Configure an appropriate value for MAX_THREAD
, which defaults to 5. The number of threads depends on the server performance, and generally, setting its value to 30 can easily take up full bandwidth. For example, you can set the number of concurrent threads to 30 by running the following command:
coscmd config -m 30
No. COSCMD adopts the overwrite upload mode by default. If you need to skip existing identical files, add the -rs
parameter.
You can use the -rs
parameter to skip files with the same MD5 checksum. For more information, please see Uploading a folder in COSCMD.
When downloading a folder, you can use the -s
or --sync
parameter to skip identical files that already exist locally (provided that the downloaded files were uploaded via the COSCMD upload
API and the x- cos-meta-md5
header was included). An example of the complete command is as follows: coscmd download -rs --skipmd5 cos_path local_path
.
No. You can upload only one folder at a time. You can put multiple folders that need to be uploaded into a single folder for uploading, but it takes time to copy files locally.
Apakah halaman ini membantu?