duplicity-talk
[Top][All Lists]
Advanced

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

[Duplicity-talk] Erring out when using cron, but working on the command


From: Diagon
Subject: [Duplicity-talk] Erring out when using cron, but working on the command line.
Date: Tue, 12 May 2020 20:32:17 -0700
User-agent: Zoho Mail

I'm backing up to a remote location via cron.  The following command works on 
the command line, but fails in crontab:

*/10 * * * * PASSPHRASE="mypassword" flock -n /tmp/backuplock 
/usr/bin/duplicity --log-file /home/me/duplicity.log --backend-retry-delay 60 
--asynchronous-upload --name TEST --volsize 50 --full-if-older-than 6M 
--exclude '**.lock' /home/me/Desktop/TEST sftp://address@hidden/Backup

The error is:

ERROR 23 BackendException
. BackendException: ssh connection to address@hidden:22 failed: Private key 
file is encrypted

I'm confused because my understanding is that my crontab will run under my same 
uname.  

Is there something I need to do with ssh-agent or somesuch?  Does anyone have 
any suggestions?  I've never looked into this end of things.

Thanks! /D





reply via email to

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