I'm tarballing and compressing backup files of my system configuration, and other important stuff. The process of tarballing, compressing and encrypting happens every time rsnapshot changes something in my backup folder, which means inserting the password of my personal GnuPG when I want to encrypt the tarball file to, well, myself.
I want to know if doing encryption of files in this way is safe and don't represent a security risk for my files.
This is how I'm currently encrypting files to myself:
#!/usr/bin/sh UBICACION=/home/jorge/respaldo/configuracion\ del\ sistema chown jorge "$UBICACION/respaldos.tar.7z" # lo ciframos DISPLAY=:0 sudo -u jorge -- gpg --no-tty -z 0 --no-greeting --encrypt --sign --yes --local-user firstname.lastname@example.org -r email@example.com "$UBICACION/respaldos.tar.7z"