hanj wrote:
> This fires off at 3AM, which is great, but now I need to have dirvish
> run around 4PM for one particular server backup. I thought it would
> be easy creating a new master.conf file (master2.conf) in
> /etc/dirvish, and adding that argument to dirvish-runall with
> --config option and cron'ing my particular run time, but I'm not sure
> how to handle the dirvish-expire. I'm not seeing any configuration
> options for new config/alternative in the man page for
> dirvish-expire. Maybe I'm just going about this totally wrong. Any
> ideas?

On Tue, Sep 19, 2006 at 03:40:15PM +0100, Dave Howorth wrote:
> Does it matter when dirvish-expire runs? Why isn't it sufficient for it
> to do its job on all vaults at 3am?

I can't speak for hanj, but it is reasonable to run all the expires
at once.  However, hanj is not including the vault FOO in master.conf,
only in master2.conf, so dirvish-expire will not automatically run
vault FOO either.  That actually allows more freedom for hanj, because
the expire for vault FOO can be run at any time with:
    dirvish-expire --vault FOO
called from cron (or whatever).

Note that master2.conf is not needed if there is just one vault getting
special treatment, you can do that with a separate shell script.

If one wants more flexibility, and is not afraid of a little extra
script writing, it is not necessary to use dirvish-runall at all,
or list vaults in master.conf Runall and expect dirvish-expire to
find them.  You can call everything from shell scripts run by cron,
using "dirvish --vault FOO" and "dirvish-expire --vault FOO" for all
individual vaults.  Runall is just a convenience and a simplification
aid.   You can put as much complex behavior as you want into your
own shell scripts, including run times at any interval you want, and
dependent on system and network conditions and machine availability.

However, you should keep it simple, and use the Runall section to
save time and confusion, if it will do the job.

Keith



-- 
Keith Lofstrom          [EMAIL PROTECTED]         Voice (503)-520-1993
KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs
_______________________________________________
Dirvish mailing list
Dirvish@dirvish.org
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to