Tools › Cron examples › every quarter
Cron expression for every quarter
The cron expression for every quarter is:
What it does
Runs at 00:00 on the 1st of January, April, July and October.
Field by field
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | exactly 0 |
| Hour | 0 | exactly 0 |
| Day of month | 1 | exactly 1 |
| Month | 1,4,7,10 | list 1,4,7,10 |
| Day of week | * | every value |
Typical uses
Quarterly reports, access reviews, and certificate or key rotation.
Watch out for
Equivalent shorthand like */3 in the month field would also run in months 1, 4, 7 and 10, because the step starts from 1.
Add it to your crontab
crontab -e, then add:
0 0 1 1,4,7,10 * /path/to/command >> /var/log/myjob.log 2>&1
Related schedules
every minuteevery 5 minutesevery 10 minutesevery 15 minutesevery 30 minutesevery hourevery 2 hoursevery day at midnightevery day at 3amevery weekday at 9amevery 15 minutes during business hoursevery Mondayevery Sunday at midnighton weekendson the first day of every monthon the last day of the monthtwice a day