targpg
tar command extended with gpg encryption/decryption with password-file
- Unlike
gpgtar
or other tools, just usetargpg
exactly liketar
with all features and standard options of tar.targpg
is just usingtar
-I
options forgpg
crypt/decrypt as a compression/decompression command.- The first option must be
-p <password-file>
use targpg.compat
if your tar command does not accept -I <command>
but only -I <prog>
pre-requisites
- bash
- gnu tar
- gpg
usage
targpg [-p <password-file>] <tar command options>
if no -p
option as first argument, will be prompted for password if using tty
examples
$ targpg -p ~/.mypass cvf secrets.tgp --exclude=.git secrets
$ targpg -p <(echo "$pass") cvf secrets.tgp --exclude=.git secrets
$ targpg -p <(echo "$pass") xvf secrets.tgp
$ targpg xfv secrets.tgp
Password: