Cron expression for every year
0 0 1 1 * runs once a year at midnight on January 1. Most cron implementations also accept the @yearly or @annually macro.
Runs entirely in your browser. Nothing you paste is sent to our server, stored or logged.
0 0 1 1 *
When it runs next
What it means
Fixing minute to 0, hour to 0, day of month to 1 and month to 1 leaves only a single matching timestamp per calendar year: 00:00 on New Year's Day.
Annual cron entries work for tax-year rollovers, yearly audit archives and creating partitioned tables ahead of time. Because a failure on January 1 goes unnoticed for twelve months if unmonitored, log output to a persistent alert or check dead-man's-switch monitoring.
Common variations
| Expression | Runs |
|---|---|
0 6 1 1 * | January 1 at 06:00 instead of midnight |
0 0 1 7 * | Mid-year fiscal rollover on July 1 |
0 0 1 * * | Every month instead of once a year |
As a crontab line
Add the command you want to run after the five fields, then save it with
crontab -e:
0 0 1 1 * /path/to/script.sh
Other common schedules
-
Every minute
* * * * * -
Every 5 minutes
*/5 * * * * -
Every 10 minutes
*/10 * * * * -
Every 15 minutes
*/15 * * * * -
Every 30 minutes
*/30 * * * * -
Every hour
0 * * * * -
Every 2 hours
0 */2 * * * -
Every day at midnight
0 0 * * * -
Every weekday
0 9 * * 1-5 -
Every week
0 0 * * 0 -
Every month
0 0 1 * * -
Every 2 minutes
*/2 * * * * -
Every 3 hours
0 */3 * * * -
Every 4 hours
0 */4 * * * -
Every 6 hours
0 */6 * * * -
Every 12 hours
0 */12 * * * -
Every day at noon
0 12 * * *