有什么办法可以禁用
Completed 1 of 12 part(s) with 11 file(s) remaining...
进度输出aws s3 sync
命令(来自 aws cli 工具)。
我知道有一个--quiet
选项,但我不想使用它,因为我仍然想要Upload...
我的日志文件中的详细信息。
这不是一个大问题,但会在日志文件中造成混乱,例如:
Completed 1 of 12 part(s) with 11 file(s) remaining^Mupload: local/file to s3://some.bucket/remote/file
Where ^M
是一个控制字符。
截至 2017 年 10 月 https://github.com/aws/aws-cli/issues/519, 可以只抑制上传进度 https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html with aws s3 cp
, aws s3 sync
and aws s3 mv
通过使用--no-progress
option:
--no-progress (boolean) 不显示文件传输进度。仅当 Quiet 和 only-show-errors 标志未启用时才应用此标志
假如。
Example:
aws s3 sync /path/to/directory s3://bucket/folder --no-progress
Output:
upload: /path/to/directory to s3://bucket/folder
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)