'Disable progress output aws s3 sync without disabling all output
Is there any way to disable the
Completed 1 of 12 part(s) with 11 file(s) remaining...
progress output with the aws s3 sync
command (from the aws cli tools).
I know there is a --quiet
option but I don't want to use it because I still want the Upload...
details in my logfile.
Not a big issue, but creates mess in the logfile like:
Completed 1 of 12 part(s) with 11 file(s) remaining^Mupload: local/file to s3://some.bucket/remote/file
Where ^M
is a control character.
Solution 1:[1]
As of October 2017, it is possible to only suppress upload progress with aws s3 cp
and aws s3 sync
by using the --no-progress
option:
--no-progress (boolean) File transfer progress is not displayed. This flag is only applied when the quiet and only-show-errors flags are not provided.
Example:
aws s3 sync /path/to/directory s3://bucket/folder --no-progress
Output:
upload: /path/to/directory to s3://bucket/folder
Solution 2:[2]
I had a quick look at the CLI tools code and currently it is not possible to disable that message.
Solution 3:[3]
You should use --only-show-errors
flag while running the command. Also, you would want --no-progress
. This is going to minimize the logging.
More specs: https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
Solution 4:[4]
You can't disable the message completely. You can only delete by editing but when you run again, it would show up again.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Bogdan |
Solution 3 | Savio D'Souza |
Solution 4 | new QOpenGLWidget |