Torch Object Storage
Parameter | Type | Description |
Parameter | Type | Description |
srcbucket | String | The name of the source bucket. |
srckey | String | The name of the source object. |
dstbucket | String | The name of the destination bucket. |
dstkey | String | The name of the target object. |
srcprefix | String | Sets the prefix used for filtering source objects when batch copying. |
dstprefix | String | Sets the prefix for target objects that are copied in batches. |
-r | Bool | Perform batch upload, download, or copy operations. |
-dryRun | Bool | Run in test mode without executing any actual uploads, downloads, or copy operations. |
-recover | String | The ID of an object upload, download, or copy task to be resumed in the result file. |
-u | Bool | This parameter is used for incremental uploads, downloads, or copies of objects. It compares the source and destination. We recommend using this setting in the following cases:
|
-pipe | Bool | Use the pipeline streaming mode to copy objects. |
-pe | String | The endpoint of the destination bucket specified when copying objects using the pipeline streaming mode. |
-flat | Bool | Do not include relative parent directories when uploading, downloading, or copying objects. |
-j | Integer | The maximum concurrency for batch operations. For example, setting -j=1 means that the maximum concurrency for batch operations is 1. This value is set to 3 by default, which is the defaultJobs value in the configuration file. |
-p | Integer | The maximum concurrency for a multipart task. For example, setting -p=1 means that the maximum concurrency for a multipart task is 1. This value is set to 20 by default, which is the defaultParallels value in the configuration file. |
-threshold | Integer | The limit, in bytes, for a multipart task. This value is set to the defaultBigfileThreshold value in the configuration file by default. tip This parameter supports configuration with capacity units. For example, there is no need to manually calculate how many bytes are in 1 MB—just write "1 MB," and the program will recognize it. |
-nfj | Integer | The maximum concurrency for regular object batch processing (non-multipart tasks). Setting this parameter divides the concurrency specified by the -j parameter into two parts: one for non-multipart tasks (nfj) and one for multipart tasks (j-nfj). This parameter only takes effect during batch operations. |
-ps | Integer/String | The size, in bytes, of each part during a multipart task. This value is set to the defaultPartSize value in the configuration file by default. tip This parameter supports configuration with capacity units. For example, there is no need to manually calculate how many bytes are in 1 MB—just write "1 MB," and the program will recognize it. |
-cpd | String | The folder where checkpoint files are stored. The default location is specified in the configuration file as defaultCheckpointDir. |
-versionId | String | The version ID of an object to be downloaded or copied. |
-acl | String | Sets the predefined access control lists (ACLs) for objects to be uploaded or copied. Possible values:
|
-sc | Enum | Sets the storage type of objects to be copied. The options are as follows:
tip
|
-meta | String | Sets the user-defined metadata of objects to be uploaded or copied. |
-sse | String | Sets the server-side encryption algorithm used when uploading or copying objects. Possible values:
This value is set to the defaultSse value in the configuration file by default. |
-sseKeyId | String | The key used when uploading or copying objects with server-side encryption with Key Management Service (KMS). This value is set to the defaultSseKeyId value in the configuration file by default. |
-contentType | String | Sets the Content-Type metadata for objects during upload or copy operations. |
-contentDisposition | String | Sets the Content-Disposition metadata for objects during upload or copy operations. |
-contentEncoding | String | Sets the Content-Encoding metadata for objects during upload or copy operations. |
-contentLanguage | String | Sets the Content-Language metadata for objects during upload or copy operations. |
-cacheControl | String | Sets the Cache-Control metadata for objects during upload or copy operations. |
-expires | String | Sets the Expires metadata for objects during upload or copy operations, in the format of YYYYMMDDHHmmSS. |
-include | String | The object matching pattern used to include objects for upload, download, or copying. The following characters have special behavior:
For example, -include=*.png#*.txt matches all objects ending in .png and .txt. tip
|
-exclude | String | The object matching pattern used to exclude objects from upload, download, or copy operations. The following characters have special behavior:
For example, -exclude=*.png#*.txt matches all objects ending in .png and .txt. tip
|
-timeRange | String | Sets the time range for the last modified time of objects during upload, download, or copy, in the format of YYYYMMDDHHmmSS-YYYYMMDDHHmmSS. |
-dmf | Bool | Do not apply the parameters, -include/-exclude and -timeRange, to folders. |
-marker | String | Sets the starting position for batch copying. |
-fr | Bool | Generate a result file when working with a single object. |
-o | String | The folder where result files are stored. The default location is specified in the configuration file as defaultOutputDir. |
-bt | String | The type of the destination bucket. The options are as follows:
If the bucket type is not specified, the default will be the type obtained from the bucket metadata. |
-sbt | String | The type of the source bucket. The options are as follows:
If the bucket type is not specified, the default will be the type obtained from the bucket metadata. |
-bfs | Integer | Uses the hierarchical listing method to batch copy objects and sets the concurrency level for those listings. |