This file contains 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
#!/bin/bash | |
# | |
# This script takes a path to a file and uploads it to Amazon | |
# Glacier. It does this in several steps: | |
# | |
# 1. Split the file up into 1MiB chunks. | |
# 2. Initiate a multipart upload. | |
# 3. Upload each part individually. | |
# 4. Calculate the file's tree hash and finish the upload. | |
# |