(resending because last one did not appear to make the list, hope this is not
a dupe now :)
On 01/15/2015 05:04 AM, Florian wrote:
> Hello.
>
> I was wondering if I can set up a schedule to do the following:
>
> Incremental from 2. to 31. day of the month, but only monday - saturday
> differential from 2. to 31. day of the month, but only sunday
>
> I couldn't find an example on it, so I just had a wild guess.
> Would this work?
>
> Run = Full on 1 at 3:00
> Run = Differential on 2-31 sun at 3:00
> Run = Incremental on 2-31 mon-sat at 3:00
>
> Regards,
>
> Florian S.
Hi Florian
After a quick look, I'm pretty certain that would work as you expect.
For testing, if you add that schedule to your bacula-dir.conf, then in
bconsole issue a
* reload
Then:
* show schedules
or
* show schedule=${nameOfYourSchedule}
You will see when Bacula thinks that schedule should be run and at what level.
(keep in mind that this output is zero-based, so day 1 for example is actually
day 0)
I stuck a few comments inline
*show schedule=TestSchedule
Schedule: name=TestSchedule
--> Run Level=Full
hour=3
mday=0 *<-- Run only on the first day of month*
month=0 1 2 3 4 5 6 7 8 9 10 11
wday=0 1 2 3 4 5 6 *<--regardless of the day of week*
wom=0 1 2 3 4 5
woy=0 1 2 3 4 5 6 7 8 9 10 11 --[snip]-- 50 51 52 53
mins=0
--> Run Level=Differential
hour=3
mday=1 --[snip]-- 30 *<-- run only on days 2-31*
month=0 1 2 3 4 5 6 7 8 9 10 11
wday=0 *<--BUT... only if it is Sunday*
wom=0 1 2 3 4 5
woy=0 1 2 3 4 5 6 7 8 9 10 11 --[snip]-- 44 45 46 47 48 49 50 51 52 53
mins=0
--> Run Level=Incremental
hour=3
mday=1 --[snip]-- 30 *<-- run only on days 2-13*
month=0 1 2 3 4 5 6 7 8 9 10 11
wday=1 2 3 4 5 6 *<--BUT... only if it is Mon-Sat*
wom=0 1 2 3 4 5
woy=0 1 2 3 4 5 6 7 8 9 10 11 --[snip]-- 44 45 46 47 48 49 50 51 52 53
mins=0
So it seems like your schedule will work the way you want.
Also, there is a command:
* status director days=xx
which is supposed to output the next xx days (If I understand correctly) but
on a 5.2.13 and a separate 7.0.5 install I can not get it to output what I
expect to see.
If I do:
* status director days=30
It shows me tonight's scheduled jobs, two jobs from tomorrow morning, all of
Saturday's scheduled jobs followed by all the jobs to be run on February 7th.
I think I am off to file a bug report unless someone tells me the correct way
the days=xx is supposed to function. :)
Hope this helps!
Bill
--
Bill Arlofski
Reverse Polarity, LLC
http://www.revpol.com/
-- Not responsible for anything below this line --
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|