Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Encrypting files before uploading to backup
$ 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
@leafnode

This comment has been minimized.

Copy link
Owner Author

@leafnode 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