|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|