DevOps & Scheduling

•

POSIX & Crontab

Cron Expression Cheat Sheet & Common Recipes

Reference guide for UNIX crontab, GitHub Actions, AWS EventBridge, and Kubernetes CronJob syntax.

Standard 5-Field Cron Syntax Diagram

┌───────────── minute (0 - 59)
│ ┌───────────── hour (0 - 23)
│ │ ┌───────────── day of the month (1 - 31)
│ │ │ ┌───────────── month (1 - 12 or JAN - DEC)
│ │ │ │ ┌───────────── day of the week (0 - 6 or SUN - SAT)
│ │ │ │ │
* * * * *

Popular Ready-to-Use Cron Recipes

DescriptionCron ExpressionUsage NoteCopy

Every minute

* * * * *

Standard high-frequency polling or queue worker trigger.

Every 5 minutes

*/5 * * * *

Common for cache warming and heartbeat health checks.

Every 15 minutes

*/15 * * * *

Ideal for background report aggregation.

Every 30 minutes

*/30 * * * *

Runs at :00 and :30 of every hour.

Every hour on the hour

0 * * * *

Hourly cleanup scripts and analytics rollups.

Every day at midnight (00:00)

0 0 * * *

Standard daily database indexing and backup snapshots.

Every day at 2:30 AM

30 2 * * *

Low-traffic off-peak window for heavy server tasks.

Every weekday morning (Mon–Fri at 9 AM)

0 9 * * 1-5

Workday notification dispatch and team digests.

Every Sunday at midnight

0 0 * * 0

Weekly log rotation and historical data archiving.

First day of every month at midnight

0 0 1 * *

Monthly billing cycle renewal and invoice generation.

Every 15 mins during business hours (Mon–Fri, 9–17)

*/15 9-17 * * 1-5

Business-hours periodic integration sync.

Every 6 hours (00:00, 06:00, 12:00, 18:00)

0 */6 * * *

Quarter-day sync schedules.

Special Characters Reference

*

Wildcard (Any Value)

Matches all allowed values in the field (e.g. * in hour means every hour).

,

Value List Separator

Specifies explicit values: 1,3,5 in weekday means Monday, Wednesday, and Friday.

-

Range Operator

Defines inclusive range: 9-17 in hours means every hour from 9 AM to 5 PM.

/

Step Interval

Increments within range: */10 in minutes means every 10 minutes (:00, :10, :20...).