[Dirvish] Calling dirvish by cron doesn't backup

Rolf-Werner Eilert eilert-sprachen at t-online.de
Tue Jan 27 11:23:02 UTC 2009

Dave Howorth schrieb:
> Rolf-Werner Eilert wrote:
>> 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?
> Well, you don't give us the contents of your dirvish config and you
> don't give us the output from either your manual run or the cron run so
> we can only guess :)
> There can be problems if you use ssh and if ssh outputs any text during
> login, but that's just a guess!
> Cheers, Dave
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish

Ok Dave, you're right... :-)

No ssh, as this is on one machine (our server).

Well, basically everything seems to be ok as dirvish does backup if run 
by hand from a terminal. But anyway...

This is in /etc/dirvish/master.conf:


image-default: %Y%m%d-%H%M

log:    gzip
index:  gzip
xdev:   1


expire-default: +6 days


There is only little in each vault's default.conf, for instance in 
backup-var there are two excludes:

client: server03

tree: /var


Now, when I let this run by cron, I will receive a message as follows:

 From root at server3.eilert  Tue Jan 27 09:55:02 2009
Return-Path: <root at server3.eilert>
X-Original-To: root
Delivered-To: root at server3.eilert
Received: by server3.eilert (Postfix, from userid 0)
	id 162746100F9; Tue, 27 Jan 2009 09:55:01 +0100 (CET)
From: root at server3.eilert
To: root at server3.eilert
Subject: Cron <root at server03> /root/bin/backup-dirvish
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20090127085502.162746100F9 at server3.eilert>
Date: Tue, 27 Jan 2009 09:55:02 +0100 (CET)
Status: RO

09:55:02 dirvish --vault backup-klein
09:55:02 dirvish --vault backup-opt
09:55:02 dirvish --vault backup-root
09:55:02 dirvish --vault backup-usr
09:55:02 dirvish --vault backup-var
09:55:02 done

As you can see, dirvish doesn't take any time making a backup or 
anything but just says "that's it".

Strange to me...


More information about the Dirvish mailing list