[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] How does script pass gpg key to duplicity?
From: |
SanskritFritz |
Subject: |
Re: [Duplicity-talk] How does script pass gpg key to duplicity? |
Date: |
Sat, 17 Mar 2012 08:26:20 +0100 |
2012/3/16 Mike Lyon <address@hidden>:
> Now, when I put it into crontab (via crontab -e), it doesn't seem to work. I
> have specified the gpg key in the backup script via "export
> PASSPHRASE=<passphrase goes here>"
> 1. When I run the script manually, why does it ask me for the gpg passphrase
> since it's already specified in the script?
When you start a script, it runs in a separate shell, and the EXPORT
command has its effect only on that, when you return to your
interactive shell, the variable is empty.
> 2. Is this why it's not working via cron because it's awaiting the entering
> of the gpg passphrase?
Yes.