encrypt linux backup folder using gpg
kaushalshriyan at gmail.com
Tue Nov 6 13:02:40 CET 2018
Thanks for the reply. I did the below
[centos]# ls helloworld/
check_cpu_perf.sh check_mem.pl jdk-8u162-linux-x64.rpm
[centos]# gpg-zip --encrypt --output hellogpg --gpg-args -r kaushal
/usr/bin/tar: kaushal: Cannot stat: No such file or directory
gpg: missing argument for option "-r"
Am i missing something?
Thanks Wiktor, I'll check it out.
On Tue, Nov 6, 2018 at 4:52 PM Wiktor Kwapisiewicz <wiktor at metacode.biz>
> On 06.11.2018 10:42, Francesco Ariis wrote:
> > Hello Kaushal,
> > On Tue, Nov 06, 2018 at 11:25:47AM +0530, Kaushal Shriyan wrote:
> >> I am using CentOS 7.5 Linux OS in my setup. I have compressed a folder
> >> using tar utility tar czvf backupfolder.tar.gz backupfolder. Is there a
> >> to encrypt backupfolder.tar.gz using gpg? Are there any best practices
> >> use gpg application to encrypt the data. Any help will be highly
> >> appreciated and i look forward to hearing from you.
> > in Debian is there a small utility (`gpg-zip`, found in the `devscripts`
> > package) which does just that. Maybe it's packaged in CentOS too!
> > -F
> Maybe that's too simple but what about just:
> gpg --encrypt --recipient $YOU backupfolder.tar.gz
> Of course after generating the key (gpg --gen-key).
> Best practices:
> - use most recent GnuPG,
> - you can generate keys on another computer (offline?) and export just
> public parts to the one that does encryption,
> - you can move decryption keys to a hardware token.
> Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnupg-users