Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

Status update enhancement? #56

Closed
davedwca opened this issue Oct 27, 2017 · 3 comments
Closed

Status update enhancement? #56

davedwca opened this issue Oct 27, 2017 · 3 comments

Comments

@davedwca
Copy link

It would be nice to have a status of the upload progress at the command line. Is this doable - I would be willing to contribute. I was thinking that every 30 seconds it prints a % complete. Sorry - I know this is more of a think-tank than an issue

@MoriTanosuke
Copy link
Owner

No problem, the issues can also be used for discussion and ideas.

I implemented a very basic version of the progress update using Amazons ProgressTracker. The upload now prints the transferred and total bytes. I build a version with this change, you can download it from https://github.com/MoriTanosuke/glacieruploader/releases/tag/0.1.1-beta1

Give it a try and tell me if this is how you imagined it. Currently it's very rough, printing the progress each second. I think it would be nice to make this configurable via the config, so the interval can be modified.

@MoriTanosuke
Copy link
Owner

Progress is currently printed like this:

#java -jar glacieruploader.jar --region MYREGION --vault MYSUPERVAULT --upload MYSUPERFILE 
INFO  Using region: MYREGION 
INFO  Starting to upload MYSUPERFILE to vault MYSUPERVAULT...
INFO  240510/64105342 transferred
INFO  543614/64105342 transferred
INFO  846718/64105342 transferred
INFO  1141630/64105342 transferred
INFO  1436542/64105342 transferred
INFO  1731454/64105342 transferred
INFO  2034558/64105342 transferred
...

@davedwca
Copy link
Author

Yes, that is exactly what I had in mind. It would be better if you could add a percent to it since the numbers are hard to see when they scroll: INFO 1436542/64105342 transferred (2%).

Your documentation makes the utility easy to use. For the beta, I found a couple of things: a) The reporting loop doesn't end after the file uploads. b)Region required when using the --help option. c) Exception stack dump when listing the contents of an empty vault.

MoriTanosuke added a commit that referenced this issue Oct 30, 2017
The ArchiveTransferManager now uses a ProgressTracker and the progress is printed as a percentage.

Fixes #56.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants