Skip to content

Instantly share code, notes, and snippets.

@jsonmaur jsonmaur/hide.sh
Last active Jun 27, 2017

Embed
What would you like to do?
Compresses and encrypts a folder
#/bin/bash
FOLDER=$1
tar -zcvf $FOLDER.tar.gz $FOLDER
gpg -c $FOLDER.tar.gz
rm -rf $FOLDER $FOLDER.tar.gz
#/bin/bash
FOLDER=$1
gpg $FOLDER.tar.gz.gpg
tar -zxvf $FOLDER.tar.gz
rm -rf $FOLDER.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.