Article 5MQT1 A gpg --batch question

A gpg --batch question

by
taylorkh
from LinuxQuestions.org on (#5MQT1)
The end of the month is approaching - time for my monthly off site data backup. I tar and gzip my important data files by directory and upload them to my ProtonDrive storage facility. I also upload a copy to my storage facility at mega.nz. As I am not sure I really trust mega I wrap the files in pgp before uploading them. I have entered the passphrase into the memory variable PASS in my backup script and after producing the .tar.gz files I executeCode:find /data/stage/ -name "*.tar.gz" -exec gpg --batch --passphrase "$PASS" -c {} \;This works great EXCEPT that it puts each ,gpg file in the same directory as the .tar.gz file from which it was created. This requires me to manually separate the files into two directory trees prior to uploading.

I am looking for a way to write the .pgp files to a different directory location during the gpg process rather than moving them later. I find nothing in the man page for gpg which addresses the destination directory. Does anyone have a suggestion?

TIA,

Kenlatest?d=yIl2AUoC8zA latest?i=WE-BD9UjX0g:D4w4i7DRbeU:F7zBnMy latest?i=WE-BD9UjX0g:D4w4i7DRbeU:V_sGLiP latest?d=qj6IDK7rITs latest?i=WE-BD9UjX0g:D4w4i7DRbeU:gIN9vFwWE-BD9UjX0g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments