Cron cheat sheet
ββββββββββ minute (0-59) β ββββββββ hour (0-23) β β ββββββ day of month (1-31) β β β ββββ month (1-12 or JAN-DEC) β β β β ββ day of week (0-7 or SUN-SAT, 0 and 7 = Sunday) β β β β β * * * * * command to run
*every value Β·1,15a list Β·1-5a range Β·*/10every 10th Β·0-30/5every 5th in a range- Shortcuts:
@hourly,@daily,@weekly,@monthly,@yearly,@reboot - 6 fields are read as seconds first (Quartz, Spring, node-cron). Linux cron, Kubernetes CronJobs and GitHub Actions only take 5.
L,Wand#are Quartz-only.
Common questions
What do the 5 cron fields mean?
In order: minute (0-59), hour (0-23), day of month (1-31), month (1-12 or JAN-DEC) and day of week (0-7 or SUN-SAT, where 0 and 7 are both Sunday). A * means "every".
Why did my job run on the wrong day?
If you set both day of month and day of week, standard cron runs when either one matches, not only when both do. 0 0 1 * 1 runs on the 1st of every month and also every Monday.
Why does my cron job run at the wrong hour?
Cron uses the server's time zone. Docker containers and GitHub Actions usually run in UTC. Set TZ for the container, or CRON_TZ where your cron supports it, or convert the hour to UTC.
How do I run something every 5 minutes?
Use */5 * * * *. Steps divide each hour, so */7 runs at :00, :07 β¦ :56 and then :00 again, with a shorter gap across the hour.
Privacy: the explainer is a small script on this page. Your cron line never leaves your browser and is not logged. The share link keeps it after the #, which browsers don't send to servers.
Scheduling updates? Read why we notify instead of auto-updating, then check your stack with the Compose update checker.
π¬ The Weekend Patch Report
One email a week: what's safe to update, what will bite, and one practical tip for your homelab or printer.
Free, weekly, unsubscribe anytime.