tencent cloud

Cloud Object Storage

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Features
Use Cases
Strengths
Concepts
Regions and Access Endpoints
Specifications and Limits
Service Regions and Service Providers
Billing
Billing Overview
Billing Method
Billable Items
Free Tier
Billing Examples
Viewing and Downloading Bill
Payment Overdue
FAQs
Getting Started
Console
Getting Started with COSBrowser
User Guide
Creating Request
Bucket
Object
Data Management
Batch Operation
Global Acceleration
Monitoring and Alarms
Operations Center
Data Processing
Content Moderation
Smart Toolbox
Data Processing Workflow
Application Integration
User Tools
Tool Overview
Installation and Configuration of Environment
COSBrowser
COSCLI (Beta)
COSCMD
COS Migration
FTP Server
Hadoop
COSDistCp
HDFS TO COS
GooseFS-Lite
Online Tools
Diagnostic Tool
Use Cases
Overview
Access Control and Permission Management
Performance Optimization
Accessing COS with AWS S3 SDK
Data Disaster Recovery and Backup
Domain Name Management Practice
Image Processing
Audio/Video Practices
Workflow
Direct Data Upload
Content Moderation
Data Security
Data Verification
Big Data Practice
COS Cost Optimization Solutions
Using COS in the Third-party Applications
Migration Guide
Migrating Local Data to COS
Migrating Data from Third-Party Cloud Storage Service to COS
Migrating Data from URL to COS
Migrating Data Within COS
Migrating Data Between HDFS and COS
Data Lake Storage
Cloud Native Datalake Storage
Metadata Accelerator
GooseFS
Data Processing
Data Processing Overview
Image Processing
Media Processing
Content Moderation
File Processing Service
File Preview
Troubleshooting
Obtaining RequestId
Slow Upload over Public Network
403 Error for COS Access
Resource Access Error
POST Object Common Exceptions
API Documentation
Introduction
Common Request Headers
Common Response Headers
Error Codes
Request Signature
Action List
Service APIs
Bucket APIs
Object APIs
Batch Operation APIs
Data Processing APIs
Job and Workflow
Content Moderation APIs
Cloud Antivirus API
SDK Documentation
SDK Overview
Preparations
Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Flutter SDK
Go SDK
iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
React Native SDK
Mini Program SDK
Error Codes
Harmony SDK
Endpoint SDK Quality Optimization
Security and Compliance
Data Disaster Recovery
Data Security
Cloud Access Management
FAQs
Popular Questions
General
Billing
Domain Name Compliance Issues
Bucket Configuration
Domain Names and CDN
Object Operations
Logging and Monitoring
Permission Management
Data Processing
Data Security
Pre-signed URL Issues
SDKs
Tools
APIs
Agreements
Service Level Agreement
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

COSCMD

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2024-12-03 17:26:36

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.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan