AWS S3 CLI 分段上传
AWS S3 CLI multipart upload
尝试使用 aws-cli 将文件上传到 AWS S3 存储桶时,它会自动对较大的文件使用分段上传吗?因为它输出的都是
Completed 3.0 GiB/9.4 GiB (18.4 MiB/s) with 1 file(s) remaining
这并没有让我变得更聪明。
我检查了其他几个信息来源,这个 this page 告诉我它会自动运行,而 Amazon 的帮助告诉我不是这样。
他们确实在 AWS 文档中提到 CLI 命令会自动对大型对象执行分段上传。
All high-level commands that involve uploading objects into an Amazon
S3 bucket (aws s3 cp
, aws s3 mv
, and aws s3 sync
) automatically
perform a multipart upload when the object is large.
Failed uploads cannot be resumed when using these commands. If the
multipart upload fails due to a timeout or is manually cancelled by
pressing CTRL+C, the AWS CLI cleans up any files created
and aborts the upload. This process can take several minutes.
If the process is interrupted by a kill command or system failure, the
in-progress multipart upload remains in Amazon S3 and must be cleaned
up manually in the AWS Management Console or with the
s3api abort-multipart-upload
command.
尝试使用 aws-cli 将文件上传到 AWS S3 存储桶时,它会自动对较大的文件使用分段上传吗?因为它输出的都是
Completed 3.0 GiB/9.4 GiB (18.4 MiB/s) with 1 file(s) remaining
这并没有让我变得更聪明。
我检查了其他几个信息来源,这个 this page 告诉我它会自动运行,而 Amazon 的帮助告诉我不是这样。
他们确实在 AWS 文档中提到 CLI 命令会自动对大型对象执行分段上传。
All high-level commands that involve uploading objects into an Amazon S3 bucket (
aws s3 cp
,aws s3 mv
, andaws s3 sync
) automatically perform a multipart upload when the object is large.Failed uploads cannot be resumed when using these commands. If the multipart upload fails due to a timeout or is manually cancelled by pressing CTRL+C, the AWS CLI cleans up any files created and aborts the upload. This process can take several minutes.
If the process is interrupted by a kill command or system failure, the in-progress multipart upload remains in Amazon S3 and must be cleaned up manually in the AWS Management Console or with the
s3api abort-multipart-upload
command.