Bacula-users

Re: [Bacula-users] Schedule not being followed

2010-01-20 08:24:40
Subject: Re: [Bacula-users] Schedule not being followed
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 20 Jan 2010 13:22:15 GMT
>>>>> On Wed, 20 Jan 2010 00:50:30 -0800 (PST), Glynd  said:
> 
> Some more information on this which may help. I did a show schedules and got
> this:
> 
> Schedule: name=WeeklyCycle
>   --> Run Level=Incremental
>       hour=19 
>       mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
> 25 26 27 28 29 30 
>       month=0 1 2 3 4 5 6 7 8 9 10 11 
>       wday=1 2 3 4 5 
>       wom=0 2 4 
>       woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
> 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
> 50 51 52 53 
>       mins=5
>      --> Pool: name=Incr-Pool-B PoolType=Backup
>       use_cat=1 use_once=0 cat_files=1
>       max_vols=1 auto_prune=1 VolRetention=6 days 
>       VolUse=0 secs recycle=1 LabelFormat=hddb-incr-
>       CleaningPrefix=*None* LabelType=0
>       RecyleOldest=0 PurgeOldest=0
>       MaxVolJobs=25 MaxVolFiles=0 MaxVolBytes=0
>       MigTime=0 secs MigHiBytes=0 MigLoBytes=0
>   --> Storage: name=HDDB address=mistral.cirrus.co.za SDport=9103 MaxJobs=1
>       DeviceName=usb-drive-b MediaType=Fileb StorageId=3
>  
> 
> The schedule resource if the bacula-dir.conf is this:
> 
> Schedule {
>   Name = "WeeklyCycle"
>   Run = IncrementalPool = Incr-Pool-B 1st, 3rd, 5th mon-fri at 19:05
>   Run = FullPool = Full-Pool-B 1st, 3rd, 5th sat at 02:05
>   Run = IncrementalPool = Incr-Pool-A 2nd, 4th mon-fri at 19:05
>   Run = FullPool = Full-Pool-A 2nd, 4th Sat at 02:05
> }

That looks slightly wrong, because it doesn't ever set the Level=Full.


> The schedule has the poolb jobs running on 1st,3rd,5th week of the month,
> yet the "show schedules" shows it for wom 0,2,4. 
> 
> Where else could this be set?

It is correct already.  Bacula uses wom 0 internally to mean "1st", 1 to mean
"2nd" etc.

A schedule runs when all of the conditions are true simultaneously.  Also, it
calculates

mday = calendar_day_of_month - 1
wom = mday / 7

i.e. Jan 1 to Jan 7 are wom 0.

__Martin

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users