JurajMlich / ultimate-bash-backup-script-with-rotation

2 stars 1 forks source link

Creating encrypted backups with GPG key #2

Open sebastian-65 opened 6 years ago

sebastian-65 commented 6 years ago

Some backups should be encrypted. It would be handy if there would be a variable with GPG public key ID that script uses to encrypt the backups right away.

You might use: gpg --trust-model always --batch --yes -ea -r $PUBKEY $OUTPUT

Where pubkey might be e.g. PUBKEY=D6F3D9BB. It might be parameter as well.

JurajMlich commented 6 years ago

I'm afraid that that is too user-specific as some people might use different encryption algorithm. You may modify the script to satisfy your needs.