Howdy,
I wanted to configure my HDD scrub to only run on the 1st Sunday of the month. Whatever day that actually lands on. And only once per month. Sounds easy enough ![]()
I thought I had done that, but in reality… and it gets very weird imo.
- I cannot configure days to be 0-7, that is invalid (0 is invalid. which makes sense)
- Configuring (only) 1 is wrong, because I want the first Sunday, not the first day of the month.
- Configuring Sunday is wrong, because I only want it to run once per month.
- Configuring 1-7 is correct in that the NAS is physically powered off the rest of the week at the cronjob times (this is what I had configured).
- But 1-7 results into “BETWEEN" 1-7”, which is not helpful as well. The first run is emitted to be on the 2nd. Which is not a Sunday.
- Configuring 1,1-7 actually emits that it would do it like I want, the words change to “one THROUGH seven” as well.
- Why tf though is the 7 now suddenly “THROUGH” when it was “BETWEEN” before? With the same logic, it should now do 1+(2-6) requiring me to input 1,1-7,7. Otherwise it treat 1-7 differently depending on if there’s other days mentioned around it (which would be very wtf).
=> this behaviour seems weird to me.
Is there an actual issue: Well yes. The NAS will see the light of day on Sundays. The logic becomes an OR once I play with the day-selector. So 1-7 has to be the thing.
But today, with a config of 1-7, the thing didn’t do anything. No log, nothing. It says it will run the next time tomorrow - which is completely wrong of course.
The “next run” preview states it would run on the 1st though (see below for March). But then why didn’t it run today. That makes me believe the wording “between” more than the preview.
Ideas? Am I doing something wrong?? Is this normal? Is this a cronjob limitation of linux in general? Very weird UX in any case (which doesn’t have to be TrueNAS’s fault).
The timezone is properly set over the whole system - I stumbled upon that a few weeks ago already when setting everything up. Shows the current time just as my PC does. The NAS was powered on ~1h before the job should have started, so no “too close to runtime” issue as well.
Alternative idea: If it is what it is https://stackoverflow.com/questions/34357126/why-crontab-uses-or-when-both-day-of-month-and-day-of-week-specified
then a solution might be that I hereby feature request seemingly existing alternatives? https://stackoverflow.com/questions/3241086/how-to-schedule-to-run-first-sunday-of-every-month
Because maybe at some point my NAS will run 24/7 and then the “first Sunday of the month” thing goes boom anyway (with the current options in the UI), no?
Otherwise: Thanks for a great and properly working software with much functionality ready to use. Perfect merger of ez and techyness!
Cheers
![]()











