0 */8 * * * Every 8 hours at minute 0 hours The cron expression 0 */8 * * * runs a job every 8 hours, always at minute 0. The second field is the hour field, and */8 steps through it from 0, while the minute field is pinned to 0 so executions land exactly on the hour. This is the idiomatic way to express hourly work in crontab: report generation, log rotation checks, batch imports, certificate expiry scans and periodic backups all fit this pattern. You get 3 runs per day, evenly spaced on the clock. Two operational details deserve attention. First, time zone: the schedule follows the machine's local time, so a server in UTC and a laptop in Berlin will fire at different absolute moments — pin CRON_TZ if your team is distributed. Second, daylight saving transitions can duplicate or skip an hour in local-time zones; scheduling in UTC avoids the surprise entirely. Below you will find the field-by-field breakdown, the next five computed run times, and ready-to-paste equivalents for Quartz, Spring @Scheduled, Kubernetes CronJob and EventBridge, whose six-field dialects differ from crontab in important ways.
Field-by-field breakdown
| Field | Value | Meaning |
|---|---|---|
| minute | 0 | only at minute 0 |
| hour | */8 | every 8 hours, stepping from the start of the range (0 for minutes/hours, 1 for days) |
| day-of-month | * | every day-of-month (wildcard, no restriction) |
| month | * | every month (wildcard, no restriction) |
| day-of-week | * | every day-of-week (wildcard, no restriction) |
Next 5 run times (UTC)
Computed at build time; cross-check against your server's time zone before deploying.
2026-12-05 08:00 UTC2026-12-05 16:00 UTC2026-12-06 00:00 UTC2026-12-06 08:00 UTC2026-12-06 16:00 UTC
When to use this schedule
- Generating and emailing operational reports that stakeholders read once per shift or once per morning.
- Rotating or compressing logs and checking disk usage before volumes fill up between daily cleanups.
- Running batch imports from partners who drop files on an hourly schedule of their own.
- Scanning TLS certificates, domain expiry and dependency advisories on a cadence that balances freshness against API quotas.
Equivalent syntax
The same schedule expressed for popular schedulers and platforms:
0 */8 * * * /usr/local/bin/job.sh # Every 8 hours at minute 0 0 0 0/8 * * ? # Quartz (Java): 6-7 fields, leading seconds, '?' when day-of-week is set 0 0 */8 * * * # Spring @Scheduled: 6 fields, leading seconds, day names accepted 0 */8 * * * # Kubernetes CronJob schedule field: standard 5-field syntax cron(0 0/8 * * ? *) # AWS EventBridge: 6 fields incl. year, '?' required in one day field Caveats & gotchas
- Cron evaluates schedules in the server's local time zone; set CRON_TZ (cronie) or TZ (containers) explicitly on shared or distributed infrastructure.
- When both day-of-month and day-of-week are restricted, standard cron ORs them; keep one of the two as '*' unless you want that behavior.
Verify your schedule
After installing the schedule, verify it end to end instead of trusting the crontab line. Run 'crontab -l' to confirm the entry survived editing, then execute the command manually with the same user and environment to catch PATH and permission problems — cron runs with a minimal environment, so absolute paths and explicit SHELL/PATH declarations prevent the classic 'works in my terminal, fails in cron' bug. Watch the daemon log ('grep CRON /var/log/syslog' on Debian/Ubuntu, 'journalctl -u cron' or '-u crond' on systemd hosts) to confirm the trigger fires at the expected times, and redirect the job's own output to a log file with 2>&1 so failures are not swallowed by mail. Finally, cross-check the next run times listed on this page against your server's time zone before declaring the schedule correct.
Frequently asked questions
How do I run a cron job every 8 hours?
Use 0 */8 * * *: minute pinned to 0, hour field stepping by 8. Runs land exactly on the hour at 0:00, 8:00, 16:00 and so on.
Why not use */60 in the minute field for hourly jobs?
*/60 only matches minute 0 (the step never reaches 60 within 0-59), so it accidentally works but communicates intent poorly. '0 * * * *' is the idiomatic hourly form.
Does 0 */8 * * * respect daylight saving time?
It follows the server's local time. During a fall-back transition an hour can repeat, potentially firing twice; during spring-forward an hour can vanish. Run critical hourly jobs in UTC to avoid both.
Try the Cron Parser
Decode cron schedules and preview the next run times.