Feature differences between ossutil 1.0 and 2.0
This topic describes the feature differences between ossutil 1.0 and 2.0.
|
Item |
Version 1.0 |
Version 2.0 |
|
Configuration file |
Uses the INI format. A configuration file supports only one set of configurations. The supported section types are Credentials, Bucket-Endpoint, and Bucket-Cname. |
Uses the INI format. A configuration file supports multiple sets of configurations. You can specify a section name using the --profile option. The profile and buckets section types are added. This version is compatible with the Credentials, Bucket-Endpoint, and Bucket-Cname sections of earlier versions, but using these sections is not recommended. |
|
Basic configurations (required) |
AccessKey ID, AccessKey secret, and Endpoint |
AccessKey ID, AccessKey secret, and region ID |
|
Command |
Commands vary based on the operating system. For example, on a Linux operating system, the command is ossutil+[Command]. |
Commands are the same across different operating systems. The command is ossutil+[Command]. |
|
Commands |
||
|
Bucket configurations |
Features such as logging and lifecycle are categorized under the root command. |
|
|
rm command |
Example: |
For example:
|
|
Append command |
|
|
|
cat command |
Supports only outputting the entire content of a file. |
Supports outputting a part of a file, such as the first 10 bytes or the last 10 bytes. |
|
cp command |
When you copy an object, only the object data is copied. The metadata and tags are not copied. |
When you copy an object, you can use the --copy-props option to control how metadata and tags are copied. You can choose not to copy them, copy only the metadata, or copy both the metadata and tags. By default, metadata and tags are copied. |
|
Modify object attributes (permissions, storage class, metadata, and tags) |
|
|
|
Presigned URL |
|
|
|
Version recovery |
Supports only restoring the latest version by deleting the delete marker. |
|
|
hash |
Supports only calculating the hash value of a local file. |
|
|
sync |
|
|
|
Options |
||
|
--include --exclude |
|
|
|
--snapshot-path |
Supported |
Not supported |
|
--encoding-type |
Applies to both input and output parameters. |
|
|
Exclusion options for the destination |
Supports only --update. |
Supports --update, --size-only, --checksum, and --ignore-existing. |
|
Speed limit |
Supports limiting only the upload speed. You can use the --max-speed option to set the limit. |
Supports limiting both upload and download speeds. You can use the --bandwidth-limit option to set the limit. |
|
Default configurations |
||
|
Signature version |
Signature Version 1. |
Signature Version 4. When you use a v4 presigned URL, the maximum validity period is one week. |
|
HTTPS protocol |
If not specified, the HTTP protocol is used by default. |
The HTTPS protocol is used by default. |
|
Object listing API |
Uses the ListObjects API operation. |
Uses the ListObjectsV2 API operation by default. You can switch to the ListObjects API operation using the --list-objects option. |
|
read-timeout |
Specifies the client read/write timeout. The default value is 1,200 seconds. |
The default value is 20 seconds. |
|
connect-timeout |
Specifies the client connection timeout in seconds. The default value is 120 seconds. |
The default value is 10 seconds. |
|
Resumable transfer |
Supported and enabled by default. |
Supported and disabled by default. |