wrapper around using (bsd)tar with age
Go to file
yosh 1817218c77 paranoia 2023-06-21 19:09:17 -05:00
README.md hehe 2023-05-04 19:51:46 -04:00
agetar paranoia 2023-06-21 19:09:17 -05:00

README.md

agetar

agetar is a simple wrapper around tar and age to easily pack files into an encrypted tar archive or extract files from an encrypted tar archive.

dependencies

  • a posix-compliant shell
  • either bsdtar or tar (bsdtar takes priority)
  • age

usage

usage:
    agetar -e (-r RECIPIENT | -R PATH)... [-a] [-o OUTPUT] [--] FILES...
    agetar -e -p [-a] [-o OUTPUT] [--] FILES...
    agetar -d [-i PATH]... [-o OUTPUT] [--] FILES...

options:
    -e            encrypt the input files to an output tar
    -d            decrypt the input tar to output files
    -o OUTPUT     encrypting: write output tar to OUTPUT. stdout if omitted
                  decrypting: directory to extract to. PWD if omitted
    -a            encrypt to a PEM encoded format
    -p            encrypt with a passphrase
    -r RECIPIENT  encrypt to the specified RECIPIENT. can be repeated
    -R PATH       encrypt to the recipients listed at PATH. can be repeated
    -i PATH       decrypt using the identity file at PATH. can be repeated

at least one FILE is required for both encrypting and decrypting
if multiple are present, each will be processed with the same identities

you probably want an OUTPUT when encrypting, even if it's not required
(age will yet at you for that anyway unless you also use -a)

most of these options are passed directly to age(1). see its man page for
more details.