targpg
tar command extended with gpg encryption/decryption with password-file
- Unlike
gpgtaror other tools, just usetargpgexactly liketarwith all features and standard options of tar.targpgis just usingtar-Ioptions forgpgcrypt/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: