hanj wrote:
> Hello All
> 
> I'm running into a problem where I need dirvish to run at a different time 
> for only one image. Currently I have this in my /etc/cron.daily directory for 
> backing up all of my servers..
> 
> #! /bin/sh
> df -H
> 
> 
> if [ -x /usr/sbin/dirvish ]
> then
>         if [ -f /etc/dirvish/master.conf ]
>         then
>                 nice /usr/sbin/dirvish-expire; /usr/sbin/dirvish-runall
>         fi
> fi
> 
> 
> 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?
> 
> Thanks in advance.
> hanji
> _______________________________________________
> Dirvish mailing list
> [email protected]
> http://www.dirvish.org/mailman/listinfo/dirvish


Probably cleaner to:

Have a single master.conf file that gives everything you currently
[probably] have in there with the exception of the Runall: statement.
Then setup a 3am and 4am file, each with a Runall: statement listing the
the vaults you want to back up at that time and nothing else.  Point
dirvish-runall at the appropriate time associated config file.
dirvish-expire just continues to pull all the bank information from
master.conf as before.

dirvish-runall will still load master.conf before whatever you specify
on the command line.  So if your master2.conf is pretty much a copy of
master.conf, you're loading all that stuff twice.

dirvish-runall doesn't use the contents of Runall:.  I'm pretty sure it
just goes off of the bank: data.

I run a variation of that to backup different sets of vaults on a 3-day
rotation.

--Jon Radel
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to