12

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.

1

4 Answers 4

16

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
5

I had a quick look at the CLI tools code and currently it is not possible to disable that message.

1
5

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

-1

You can't disable the message completely. You can only delete by editing but when you run again, it would show up again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.