Apologies Kern, I have responded directly to your e-mail instead
of the mailing list. 


On 2020-09-28 15:05, Kern Sibbald wrote:
> Hello,
> 
> You have to look at the problem from a slightly different point of 
> view.
> 
> The filters or specifiers 1st, ... 6th simply say that if the
> current day of the year falls on the Nth week of a particular
> month then the Job will run, otherwise, that particular run
> directive will be disregarded.

Yes, but for me the definition of the "1st" week of the month was
unclear and I used the definition of the week which says:
"A week starts with Monday and ends with Sunday.".

> A week is defined as Monday through Sunday.  This is an arbitrary
> definition that is fixed in Bacula.  That is 1st applies to any day
> that falls in the 1st week of a month.  Note: not all weeks have
> a Monday or a Tuesday or any other day (see below for a
> month that has only Sunday in the first week).  The 1st week may
> only be a Sunday if the first day of a given month is on Sunday.
> In that case the following day (Monday) will be in the 2nd week of the
> month.

Excellent. That answers my questions and doubts about week of the month.
Thank you very much.

> With that logic, it turns out that it is possible to have a month
> that has at least one day in each of 6 separate weeks.

Yes, the November of 2020 is the example of such month where the
first day of the month will be Sunday and the last day of the month
will be Monday and therefore November of 2020 will have 6 weeks.

Thank you for the clarification.

> Take as an example a 31 day month where the first day of the
> month falls on a Sunday.  In that case, the 30th and 31st days
> of the month will fall on Monday and Tuesday in the 6th week
> of that month thus the need for 6th.

Yes, March of the 2020 would match your example.
I understand the logic now.
What I needed was the logic which was used behind that and I failed
to find it in the documentation as well as in the mailing list archives.


Regards!

-- 
Josip Deanovic


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to