PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Duplicity does not run from cron-script
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Duplicity does not run from cron-script

Réponse
 
LinkBack Outils de la discussion
Vieux 08/05/2008, 12h30   #1
Sjoerd Hardeman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Duplicity does not run from cron-script

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 .

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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 08/05/2008, 12h50   #2
Peter Jordan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 .
>
> 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>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h05.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09362 seconds with 10 queries