I'd like to use anacron to run a job annually. I see only daily, weekly, and monthly configuration for anacron. Is there a way to run a job once per year?
Ofcourse and it is already there with the possible selections you have: pick 1 specific day and 1 specific month and it will run once per year. Day 1 of month 1 would be on the 1st of January.
Anacron has 2 ways of defining lines. The 2nd one is like this:
The period_name can be set to daily, weekly, monthly, yearly or annualy. This will ensure jobs are run once a week, month or year no matter the number of days in this period.
The 0 means no delay. job1 is an identifier and the command to execute.
I think this would work unless my computer was off for all of January: