Skip to content

Instantly share code, notes, and snippets.

@jakubigla
Created January 4, 2017 10:58
Show Gist options
  • Save jakubigla/ae88793b02db9347f7f2c21eb5f31040 to your computer and use it in GitHub Desktop.
Save jakubigla/ae88793b02db9347f7f2c21eb5f31040 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
CURRENT=`basename "$0"`
FILES=$(ls -p | grep -v /)
for FILE in $FILES; do
if [ $FILE != $CURRENT ]; then
aws glacier upload-archive --account-id - --vault-name Hangar --body "$FILE" --region eu-central-1
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment