[Dirvish] Command line versus cron

Warren Sanders wsand70 at gmail.com
Wed Dec 7 18:15:54 EST 2005


Most likely a path issue.  Try adding to your crontab explicitly prior
to the dirvish command:
PATH=/usr/local/sbin:/usr/bin:/bin
Or wherever dirvish is located to include it.

On 12/7/05, kchriste at hambrosalle.dk <kchriste at hambrosalle.dk> wrote:
> Hello list
>
> I have just got Dirvish installed on a seperate backup server.
> Everything works when dirvish is exeuted from command line:
> /usr/local/sbin/dirvish-runall
>
> My problem is that if I execute the exact same statement from cron I get
> the following error:
>
> Output from command /usr/local/sbin/dirvish-runall ..
>
> 23:43:30 dirvish --vault etc --image-time "13:00"
> sh: dirvish: command not found
> 23:43:30 dirvish --vault home --image-time "13:00"
> sh: dirvish: command not found
> 23:43:30 dirvish --vault share --image-time "13:00"
> sh: dirvish: command not found
> 23:43:30 dirvish --vault srv --image-time "13:00"
> sh: dirvish: command not found
> 23:43:30 dirvish --vault usr --image-time "13:00"
> sh: dirvish: command not found
> 23:43:30 dirvish --vault var --image-time "13:00"
> sh: dirvish: command not found
> 23:43:30 done
>
> My /etc/dirvish/master.conf looks like this:
> bank:
>         /backup/venice
>
> exclude:
>         /tmp
>         *~
>         .nfs*
>         lost+found/
>
> Runall:
>         etc     13:00
>         home    13:00
>         share   13:00
>         srv     13:00
>         usr     13:00
>         var     13:00
>
> expire-default: +90 days
>
> image-default: %Y-%m-%d
> xdev: 1
> log: gzip
> index: gzip
>
> My /backup/venice/etc/dirvish/default.conf looks like this:
>
> client: venice
> tree: /etc
>
> and the other vaults are similar defined
>
> Any help and ideas are welcome
> Regards
> Kim
>
>
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish
>


More information about the Dirvish mailing list