[Dirvish] Calling dirvish by cron doesn't backup
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
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:
expire-default: +6 days
There is only little in each vault's default.conf, for instance in
backup-var there are two excludes:
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>
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
Message-Id: <20090127085502.162746100F9 at server3.eilert>
Date: Tue, 27 Jan 2009 09:55:02 +0100 (CET)
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
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