Skip to content

Encrypt *.tgz in a given directory with a pgp public key in an automated fashion.

License

Notifications You must be signed in to change notification settings

jpegleg/crypt-baller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

crypt-baller

Encrypt *.tgz in a given directory with a pgp public key in an automated fashion.

The software does not contain any cryptographic software, just wrapper script automation around other software not included here that does the actual encryption, as in gpg.

Example:

chmod +x ./crypt-baller

mv ./crypt-baller /usr/local/bin/

gpg --import some-public-key.asc

crontab -e

10 * * * * /usr/local/bin/crypt-baller /mnt/encrypt-me/ public-key-email-or-finger-print@some-place.com

Then you would have another script creating tarballs that are placed in /mnt/encrypt-me/ and ensure they get written to /mnt/encrypt-me/ before the crypt-baller runs against the directory.

Example tarring action:

( perhaps run each hour in a root crontab 5 minutes after the hour, giving it 5 minutes to complete before the crypt-baller crontab above encrypts it )

tar czvf /mnt/encrypt-me/$(hostname).logs.$(date +%Y%m%d-%H).tgz /var/log/

Also see https://github.com/jpegleg/double-crypt

About

Encrypt *.tgz in a given directory with a pgp public key in an automated fashion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages