Passphrase on the command line
stef at caunter.ca
Wed Mar 22 14:31:26 CET 2006
The documentation does not recommend this.
Since you appear to not want to store the ciphertext but the plaintext, an
encrypted network transfer seems appropriate and less expensive. Write the
backup to an ssh pipe instead of a temporary file.
On Wed, 22 Mar 2006, Daniel Carrera wrote:
> This should be a simple question. What is the recommended way to decrypt a
> file from a script that runs on a cron job? This is what I have so far:
> cat passphrase | gpg -o MyData --passphrase-fd 0 -d MyData.asc
> Where 'passphrase' has the chmod permission 400.
> Is this the best option?
> Background: I want to setup a cron job to regularly download an encrypted
> backup of a database, decrypt it, and store it here (this computer then gets
> backed up onto tape drives).
More information about the Gnupg-users