Skip to content

Instantly share code, notes, and snippets.

@nhp
nhp / glacier.sh
Last active December 30, 2019 09:43
aws glacier upload from bash with correctly configured aws cli credits to https://github.com/dradtke
#!/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.
#