Forked from revnode/tar.gz with gpg-encryption on the fly
Created
June 10, 2017 19:01
-
-
Save arabcoders/22abb25b0d417506afd4464f5d9434d0 to your computer and use it in GitHub Desktop.
Create a encrypted tar.gz file from a directory on the fly. The encryption is done by GPG with a public key. The resulting filename is tagged with the date of creation. Very usefull for encrypted snapshots of folders.
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 -cvz /<path>/ | gpg --encrypt --recipient <keyID> > /<backup-path>/backup_`date +%d_%m_%Y`.tar.gz.gpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment