Created
January 4, 2017 10:58
-
-
Save jakubigla/ae88793b02db9347f7f2c21eb5f31040 to your computer and use it in GitHub Desktop.
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
#!/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