Peter Keller wrote
>
> On 01/04/2016 09:00 AM, pietersnld wrote:
>
>> Found the same in the source code (7.2)
>>
>> /*
>> * Given a Unix date return the week of the year.
>> * The returned value can be 0-53. Officially
>> * the weeks are numbered from 1 to 53 where week1
>> * is the week in which the first Thursday of the
>> * year occurs (alternatively, the week which contains
>> * the 4th of January). We return 0, if the week of the
>> * year does not fall in the current year.
>> */
>> int tm_woy(time_t stime)
>> {
>>
>> Think i have to accept an extra differential backup in "week 0". Thanks
>> for
>> pointing me to the manual just didn't read the whole part :-(
>> (Next time I will check twice if bacula has some exceptions to the
>> standards)
>
> Curiously, how does that "alternatively" clause work on Jan 2026?
> Is Jan 1 - 3 indeed week 0?
>
> January 2026Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9
> 1011 12 13 14 15 16 1718 19 20 21 22 23 2425 26 27 28 29 30 31
>
> Later,
> -pete
No, ISO weeks start on monday so i reformated your calendar of january 2026.
January 2026Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10
1112 13 14 15 16 17 1819 20 21 22 23 24 2526 27 28 29 30 31
First thursday in January is week 1. So january 1st is in week 1. Week1 is
December 29th 2025 - January 4th 2026But it gets even stranger. When using
bacula's routine the following occurs:
Time : Thu Dec 25 14:13:24 2025Week : 52Time : Fri Dec 26 14:13:24 2025Week
: 52Time : Sat Dec 27 14:13:24 2025Week : 52Time : Sun Dec 28 14:13:24
2025Week : 52Time : Mon Dec 29 14:13:24 2025Week : 53Time : Tue Dec 30
14:13:24 2025Week : 53Time : Wed Dec 31 14:13:24 2025Week : 53Time : Thu Jan
1 14:13:24 2026Week : 1Time : Fri Jan 2 14:13:24 2026Week : 1Time : Sat Jan
3 14:13:24 2026Week : 1Time : Sun Jan 4 14:13:24 2026Week : 1Time : Mon Jan
5 14:13:24 2026Week : 2Time : Tue Jan 6 14:13:24 2026Week : 2
Something to keep in mind! If the last part of the year is actually in the
new year bacula will calcutate it as week 53!
Pieter
--
View this message in context:
http://bacula.10910.n7.nabble.com/No-Full-backup-in-first-weekend-of-january-tp11342p82955.html
Sent from the Bacula - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users