Created
March 16, 2014 16:22
-
-
Save leafnode/9585766 to your computer and use it in GitHub Desktop.
Encrypting files before uploading to backup
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
$ for i in *; do j=`echo "$i" | iconv -f UTF8 -t ASCII//TRANSLIT`; zip -r -0 - "$i" | openssl enc -aes256 -e -k my_secret_key > "$j.zip.enc"; done |
Author
leafnode
commented
Mar 16, 2014
- Renaming to remove Polish national characters (glacier-cmd doesn't like them - yay for UTF in Python)
- Zipping (to reduce number of Glacier reqests)
- Encrypting with openssl's aes256
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment