To verify my files have uploaded correctly, is there a tool to generate the Amazon Glacier Tree Hash SHA-256 for files locally?
To verify my files have uploaded correctly, is there a tool to generate the Amazon Glacier Tree Hash SHA-256 for files locally?
boto has a utility function to do this.
Here's a wrapper script to turn it into a command line tool
Sorted, I made a quick Windows tool from Amazons own source to compute the hash.
https://mega.co.nz/#!HBMQ0ZSL!l0p0AamSpoFxKwDtJU03_uTi9t9hJ-6EVURmOSXSP3Y
Glacier documentation provides a sample code to compute SHA256 tree hash.
I've built a Docker image to run this sample code. You can use it to compute SHA256 tree hash for multiple files:
docker run -it --rm -v `pwd`:/app ggarnier/glacier-sha256-tree-hash:latest <file1> <file2> ...
There is a bash script implementation using openssl here: https://github.com/numblr/glaciertools