-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3 sync: display progress? #2598
Comments
We do display progress. It will show up like so:
Now due to the nature of how S3 works we can't get the full number of files or the full size ahead of time, so we use the tildes and "calculating" to indicate that until we have full information. |
I'm not seeing this with
|
You'll only see it when it's actually running, it won't show up in logs. This was added in 1.11.0 |
Ah ok.. I'm guessing because it detects it's a non interactive shell. |
@JordonPhillips would it be possible to add a flag to show the progress even when stdout is not a tty? |
So the reason why you won't see this in logs is that we use carriage returns to erase the line and start over. This lets us provide live progress without polluting output with thousands of lines of incremental progress text. Looking at the logs afterwards you won't see any of the progress updates because they all get wiped. If you're looking at it live then you should be seeing them regardless of the output destination. For example: $ aws s3 cp s3://bucket/large-object . &> out.log & tail -f out.log That runs the transfer in the background, redirecting all output to a log file. While that's going on it tails the log file so updates are shown. You will see the file change in real time, but at the end the file will be without any progress messages. |
I was tailing the docker logs and didn't see any progress message like you are saying. $ docker run -d --name=s3 garland/aws-cli-docker sh -c "aws s3 cp s3://bucket/large-object ."
$ docker logs -f s3 |
Not sure what's going on, could you provide some debug logs? |
Maybe try start a sync inside docker and |
If you append |
Closing due to inactivity. Please feel free to reopen once you've got those debug logs. |
To add some detail to Jordan's comments, |
Is there a way to see only the "Completed" progress line, rather than logging each object? |
For those having issues with not being able to see completed status while tailing docker logs (i.e. not in an interactive shell) this should help
Should give you some log lines that look like
Note: you may need to adjust the sed statement when using different versions of sed. |
When using
aws s3 sync s3://first-bucket s3://second-bucket
, I'm seeing a bunch of logs but there's no way to tell how many objects are left or any sort of progress / ETA, which is really annoying since I have a lot of objects and have no idea whether my sync will be done in 10 minutes or 10 days.Here are the logs that I'm seeing:
Is there a flag to enable a progress bar or some kind of ETA? Otherwise, that would be a feature request.
The text was updated successfully, but these errors were encountered: