Re: Duplicity does not run from cron-script
Sjoerd Hardeman, 05/08/2008 01:15 PM:
> Hi all,
>
> I have a cron script that first calls automysqlbackup for dumping the
> database and dumps the package list. After that, it should copy this
> plus other stuff to a remote location using duplicity. This script runs
> fine when executed manually, but when run via cron it does dump the
> database and package list, but it does not run duplicity. It also
> doesn't log anything, at least not where I can find it.
> Has anybody any idea of what I'm doing wrong? Below you find the script
> I use. I know this is little to go on, but I really have no idea of what
> else to provide. Thanks for any help.
>
> Sjoerd
>
>
> #!/bin/sh
> /usr/local/sbin/automysqlbackup.sh >> /var/log/automysqlbackup.log
> /usr/local/sbin/dumppackagelist.sh >> /var/log/dumppackagelist.log
>
> export PASSPHRASE=*******
> duplicity --encrypt-key "55002BF6" --sign-key "DE030354" --include
> /backup --include /root --include /home --include /etc --include
> /var/backups --include /var/www --include /var/log --include
> /var/cache/debconf --exclude '**' /
> ssh://backup@gerst//home/backup/rijst_backup >> /var/log/backup.log
>
>
I only can guess:
duplicity does not know, which gnupg keys to use.
try this:
export HOME=/home/<user>
Reply to: