0 0 1 1 * — once a year, at New Year
Answer0 0 1 1 * runs once a year, at 00:00 on 1 January. @yearly and @annually mean the same.
0Minute0Hour1Day of month1Month*Day of week
At 00:00 on 1 January.
0Minute (0-59)At minute 0 (on the hour)
0Hour (0-23)Hour 0 (midnight, 00:00–00:59)
1Day of month (1-31)The 1st of the month
1Month (1-12 or JAN-DEC)January
*Day of week (0-7 or SUN-SAT (0 and 7 = Sunday))Every day (no restriction)
Next 10 runs in UTC
- 1in 2 months
- 2in 1 year
- 3in 2 years
- 4in 3 years
- 5in 4 years
- 6in 5 years
- 7in 6 years
- 8in 7 years
- 9in 8 years
- 10in 9 years
When it fires
0 runs a day on average0.02 a week1 of the next 364 days have a run
Hours of the week (darker = more runs)The next 52 weeks, one square per day
What to know
A yearly job is the hardest to test: make the script runnable by hand with the date as an argument, and test that, rather than waiting for New Year.
Gotchas
- If the server is down at that minute, standard cron does not catch up later. anacron (or systemd's
Persistent=true) does.
← Explain any cron expression