[Dirvish] Calling dirvish by cron doesn't backup

sdr (di friedrich reichhart) senior.reichhart at sdr.at
Tue Jan 27 11:08:55 UTC 2009


Its because the environment isn't the same running cron.

--On Dienstag, 27. Jänner 2009 11:34 +0100 Rolf-Werner Eilert 
<eilert-sprachen at t-online.de> wrote:

> Just installed dirvish and made an initiation on the backup HDs. So far,
> everything worked fine.
>
> Now, when I call the backup from cron, dirvish just runs through within
> a second and mails "done" to root. Nothing really happens.
>
> When I call it by hand, backup runs as expected.
>
>
> Let me give you a few details:
>
>
> In /etc/crontab there is for instance:
>
> 15 09 * * 1-5 root /root/bin/backup-dirvish
>
> This script of mine mounts the backup HD and starts dirvish:
>
> #!/bin/sh
>
> mount /dev/sdg1 /mnt
>
> if [ ! -d /mnt/backups ]
> then
>      echo Backup HD not found
>      exit 1
> fi
>
> /usr/local/sbin/dirvish-expire
> /usr/local/sbin/dirvish-runall
>
> umount /mnt
>
>
> Having cron calling this script, it will just list the vaults and mail
> "done". Calling the script manually as root will make a backup as
> expected.
>
> Any idea?
>
> Rolf
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish



-- 
Dipl.-Ing. Friedrich Reichhart
Geschäftsführer

-- 
**   Software Development Reichhart GmbH
**   A-1220 Wien, Schachnerstrasse 53
**   Tel: +43 1 203 77 51 /  Fax: +43 1 204 42 71
**   Handelsgericht Wien, Firmenbuch: FN 189969 t  , UID: ATU 48408502
**   Key Fingerprint: 4310 A403 6149 3060 355D  6C1C 6718 F7DB FBE3 67C5
**   senior.reichhart at sdr.at , office at sdr.at / www.sdr.at



More information about the Dirvish mailing list