Created
December 6, 2013 17:14
-
-
Save deckerego/7828557 to your computer and use it in GitHub Desktop.
Compress and encrypt a tarball in a single line
This file contains hidden or 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
gpg -d archive.DATE.tar.bz2.gpg | tar xvj |
This file contains hidden or 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
tar c -O -C "$HOME" directory_to_archive | bzip2 -c | gpg -e -r your_email@gpg_keyring -o "archive.`date +%Y%m%d_%H%M`.tar.bz2.gpg" - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment