tencent cloud

masukan

Terakhir diperbarui:2022-06-20 12:27:21

    What should I do when COSCMD is unavailable?

    Please check whether the following requirements are met:

    1. The OS is Windows, Linux, or macOS.
    2. Local characters use UTF-8 encoding. Otherwise, exceptions will occur when you operate on Chinese files.
    3. The local time is in sync with UTC. If there is a large deviation between the two, COSCMD might not function properly.

    For more information, please see COSCMD.

    Does COSCMD support regular expressions?

    No.

    I can successfully create a bucket with a name containing uppercase letters using COSCMD, but when I perform other operations with a bucket name containing uppercase letters, an error occurs. What is the reason for this?

    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.

    Can the files in a sub-directory be excluded when I upload or download the files in the root directory with COSCMD?

    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 "".

    How can I transfer a large number of files with quicker speed?

    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
    

    Does COSCMD support using * to determine objects with a specified prefix to download?

    No. You need to use the following command format for download:

    coscmd download prefix/ localpath/ -r
    

    Can I use the 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.

    Can I use COSCMD to manage buckets of different accounts at the same time?

    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.

    Can I specify multiple buckets in the COSCMD configuration file?

    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.

    • Use the -b <bucketname-appid> parameter to specify the bucket name, which must be formatted as BucketName-APPID.
    • Use the -r <region> parameter to specify the region where the bucket resides.

    Does COSCMD verify filename duplication for uploaded files?

    No. If you upload a file whose name is duplicated with that of an existing file, COSCMD will overwrite the existing file.

    How do I transfer a large number of files with a quicker speed?

    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
    

    Does COSCMD verify the content of uploaded files?

    No. COSCMD adopts the overwrite upload mode by default. If you need to skip existing identical files, add the -rs parameter.

    How do I skip existing identical files when uploading files with COSCMD?

    You can use the -rs parameter to skip files with the same MD5 checksum. For more information, please see Uploading a folder in COSCMD.

    How do I skip identical files when downloading files with 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.

    Can I upload multiple folders at the same time with COSCMD?

    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.

    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24