Cron expression for every 6 hours
Runs the job at midnight, 6 AM, noon, and 6 PM every day.
0 */6 * * *
On the hour, every 6 hours
Field by field
- Minute · 0–59
0only at minute 0 - Hour · 0–23
*/6every 6th hour - Day of month · 1–31
*every day of the month - Month · 1–12 or JAN–DEC
*every month - Day of week · 0–7 or SUN–SAT
*every day of the week
Next runs in your local time
Why this schedule, and when it bites
Six-hourly is the cadence of things that must not wait a full day but do not deserve hourly load: external feeds, heavy imports, credential rotation on a short leash. The step sits in the hour field, 0 */6, so runs land at midnight, 06:00, noon and 18:00. The anchor is fixed: */6 is not a six-hour timer that starts when the last run ends.
The anchor is midnight, not deploy time. Deploying at 10:17 does not shift the runs to 10:17. The grid stays 0, 6, 12, 18. If the job must run six hours after deployment, cron is the wrong mechanism; schedule it from the application or with a timer that starts after the service.
Four runs means four chances to collide. Heavy imports at 06:00 and 18:00 can overlap the morning and evening peaks of everything else on the host. Offset to :30 if the slot is tight: 30 */6 * * * moves all four runs off the crowded hour.
Half-hour zones. Some regions offset by thirty minutes; a 0-minute schedule still fires on the hour local, but reports that bucket by UTC hour get four uneven buckets. Choose the bucketing zone explicitly when the data crosses zones.
Where this cron expression shows up
- Syncing four times a day
- Batch uploads that would be too heavy to run hourly
- Rotating credentials on a fixed cadence
Common variations
-
Every 12 hours
0 */12 * * * On the hour, every 12 hours
-
Every 6 hours, offset to :30
30 */6 * * * At 30 minutes past the hour, every 6 hours
Ranges, steps, and names are spelled out on the cheat sheet.
Questions this schedule raises
What times does 0 */6 * * * fire?
00:00, 06:00, 12:00 and 18:00 in the daemon's timezone, four runs a day. In UTC those are the four quarter points of the day; local wall-clock times move with the zone offset and daylight saving.
Is every six hours the same as four times a day?
Yes for this expression: */6 on the hour field divides 24 hours into four equal slots. If the business means four runs at specific clock times, write them as 0 2,8,14,20 * * * and the intent survives a future change of the step.