duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] Duplicity (GPG) fails in crontab only


From: edgar . soldin
Subject: Re: [Duplicity-talk] Duplicity (GPG) fails in crontab only
Date: Wed, 07 May 2014 00:06:20 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 06.05.2014 17:55, Grant wrote:
> Duplicity works fine if I run it manually as root, but the exact same
> command run via cron as root fails with:
> 
> GPGError: GPG Failed, see log below:
> ===== Begin GnuPG log =====
> gpg: encrypted with RSA key, ID *MASKED*
> gpg: decryption failed: No secret key
> ===== End GnuPG log =====
> 
> Does anyone know why this happens?
> 

on some distros cron starts with an empty environment.

you can set it manually on top of your crontab, supposed you use a user crontab 
for root then 'crontab -e' and add

HOME=/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

..ede/duply.net



reply via email to

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