duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] gpg "no public key", but only when run from cron


From: Jon
Subject: Re: [Duplicity-talk] gpg "no public key", but only when run from cron
Date: Mon, 01 Dec 2008 12:26:21 -0400
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

Steve Madsen wrote:
I'm having a bear of a time getting my automated backups to work properly from the cron environment. I am using the scp transport. When run interactively, it works fine. When run from cron, I get this error:

gpg: 2D2CF1CB: skipped: No public key
gpg: [stdin]: encryption failed: No public key

I think my keys are set up OK in GPG:

cheechoo# gpg -k
/root/.gnupg/pubring.gpg
------------------------
pub   1024D/B2DF0ACA 2007-08-22
uid Steve Madsen (root) <address@hidden> uid Light Year Software, LLC (rsync.net backups) <address@hidden>
sub   2048g/2D2CF1CB 2007-08-22

I had previous problems with "Fatal Error: Neither remote nor local manifest is readable" (fixed by adding --archive-dir) and PATH differences in the cron environment, but those are all resolved and I'm down to this GPG issue.

Anyone have any ideas?

I had the same issue and while I am sure there is a better way, I solved it by beginning my scripts with

# Export the PASSPHRASE variable because cron can't read it
# for some reason
export PASSPHRASE=MYPASSPHRASE

Might work for you...

Jon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]