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,
Ken
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,
Ken