duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] duplicity and crontab


From: edgar . soldin
Subject: Re: [Duplicity-talk] duplicity and crontab
Date: Sun, 8 Nov 2020 14:12:42 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

unless they are user cronjobs of course ;) set up via 'crontab -e' in user 
context.

but Ken is right. often users edit crontabs under /etc and the wonder why 
duplicity using key enc does not work while it did in their user's shell. the 
above is a common pitfall.

.ede/duply.net

On 06.11.2020 16:33, Kenneth Loafman via Duplicity-talk wrote:
> One other thing to check:  Cron jobs run as root by default.  You'll need to 
> check that duplicity has access to ~root/.gnupg and that your keys are there.
>
> ...Ken
>
>
> On Fri, Nov 6, 2020 at 6:19 AM edgar.soldin--- via Duplicity-talk 
> <duplicity-talk@nongnu.org <mailto:duplicity-talk@nongnu.org>> wrote:
>
>     On 11/6/2020 12:45, Giuliano Franchetti via Duplicity-talk wrote:
>     > Hello to all, 
>     >
>     > I have made a shell script to perform a backup with duplicity, the 
> script works well if I run it from xterm. 
>     > However, when I try to run the script with cron for automatising the 
> backup something does not work 
>     > with duplicity. I looked in the web but it is not clear what is the way 
> out. 
>     >
>     > Has anyone succeeded to do this? 
>
>     indeed some did :) i can give you some hints.
>
>     there's probably an error in your /var/log/messages or syslog. check that.
>
>     did you provide a proper PATH variable in your crontab? most crons have 
> only a limited path set initially.
>
>     ordinary cron daemons support MAILTO so any output is send via mail too 
> the given address. you might want to set set for debugging or generally.
>
>     ..ede/duply.net <http://duply.net>
>
>
>     _______________________________________________
>     Duplicity-talk mailing list
>     Duplicity-talk@nongnu.org <mailto:Duplicity-talk@nongnu.org>
>     https://lists.nongnu.org/mailman/listinfo/duplicity-talk 
> <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>
>
>
> _______________________________________________
> Duplicity-talk mailing list
> Duplicity-talk@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>




reply via email to

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