General Updates and Improvements#3
Open
gardnert wants to merge 3 commits intobenporter:masterfrom
Open
Conversation
added 3 commits
March 27, 2017 16:13
Taken from http://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html for use in complete-multipart-upload
The script now requires you to pass the name of the whole archive in as an argument Fixed bytesize being wrong if it was bigger than the final part of the upload changed abort-multipart-upload to complete-multipart-upload added treehash computation and inclusion in complete-multipart-upload store the json response from amazon in result.json
added information on how to use the script with TreeHashExample, and with passing in the name of the full archive when you call the script
Cchacoff
approved these changes
Feb 4, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've updated your script to be slightly more modular and up to date with the latest glacier api.
The main changes being the complete-multipart-upload instead of abort-multipart-upload, and correctly computing the bytesize for the last part.
Also, I've added amazon's example of computing the tree hash which is used in the complete-multipart-upload command for aws cli.