https://github.com/joknarf/targpg
tar command extended with gpg encryption/decryption
https://github.com/joknarf/targpg
command-line-tool encrpytion gpg linux macos password tar
Last synced: 16 days ago
JSON representation
tar command extended with gpg encryption/decryption
- Host: GitHub
- URL: https://github.com/joknarf/targpg
- Owner: joknarf
- License: mit
- Created: 2025-07-20T08:00:13.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-20T09:11:28.000Z (6 months ago)
- Last Synced: 2025-07-20T10:11:10.602Z (6 months ago)
- Topics: command-line-tool, encrpytion, gpg, linux, macos, password, tar
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://joknarf.github.io/joknarf-tools)
[]()
[]()
[](https://shields.io/)
# targpg
tar command extended with gpg encryption/decryption with password-file
> * Unlike `gpgtar` or other tools, just use `targpg` exactly like `tar` with all features and standard options of tar.
> * `targpg` is just using `tar` `-I` options for `gpg` crypt/decrypt as a compression/decompression command.
> * The first option must be `-p `
use `targpg.compat` if your tar command does not accept `-I ` but only `-I `
## pre-requisites
* bash
* gnu tar
* gpg
## usage
```
targpg [-p ]
```
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:
```