Cron Expression for Every 2 Hours: 0 */2 * * *

Runs every 2 hours at :00 (00:00, 02:00, 04:00 ... 22:00). Ideal for: Incremental database backups, product catalog rebuilds, and social/SEO metric snapshots.

0 */2 * * *
Runs every 2 hours at :00 (00:00, 02:00, 04:00 ... 22:00)

5-Field Cron Breakdown

0
Minute
At minute 00
*/2
Hour
Every 2nd hour (0, 2, 4...22)
*
Day of Month
Every day
*
Month
Every month
*
Day of Week
Every weekday

Live Next-10-Runs Simulator (UTC & Local Time)

Runs every 2 hours at :00 (00:00, 02:00, 04:00 ... 22:00)

Run #UTC Execution TimeSelected TimezoneRelative
Calculating next 10 runs locally...

Copy-Paste Snippets Across Platforms

Linux Crontab (Overlap-Safe with flock)

0 */2 * * * /usr/bin/flock -n /tmp/my-job.lock /usr/local/bin/job.sh >> /var/log/my-job.log 2>&1

GitHub Actions Workflow YAML

on:
  schedule:
    - cron: '0 */2 * * *' # UTC only
  workflow_dispatch: {}

Quartz (6-Field) & AWS EventBridge

Quartz 6-field: 0 0 */2 * * ?
AWS EventBridge: cron(0 */2 * * ? *)

Kubernetes CronJob Spec

apiVersion: batch/v1
kind: CronJob
metadata:
  name: scheduled-job
spec:
  schedule: "0 */2 * * *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid

Production Pitfalls & Best Practices

Key Pitfall: Always specify minute `0` (not `*`). Writing `* */2 * * *` runs every single minute during even hours (720 times/day)!
Common Use Cases: Incremental database backups, product catalog rebuilds, and social/SEO metric snapshots.
Chrome Extension + Gumroad Pro

Automate Browser Checks & Webhooks with DiffRadar & HAR-to-Playwright

Pair your cron schedules with our Chrome extensions (DiffRadar, HAR-to-Playwright, Page2MCP) and production workflow templates to monitor APIs and scrape structured data reliably.

Frequently Asked Questions

What does the cron expression `0 */2 * * *` mean?

`0 */2 * * *` means: Runs every 2 hours at :00 (00:00, 02:00, 04:00 ... 22:00). Its 5 fields map to Minute=0, Hour=*/2, Day-of-Month=*, Month=*, and Day-of-Week=*.

How do I run `0 */2 * * *` in GitHub Actions?

Add `on: schedule: - cron: '0 */2 * * *'` to your workflow YAML. Remember GitHub Actions always interprets cron schedules in UTC and enforces a minimum 5-minute interval.

What is the Quartz / AWS EventBridge equivalent of `0 */2 * * *`?

In 6-field Quartz cron use `0 0 */2 * * ?` (adding leading seconds `0` and `?` mutual exclusion). In AWS EventBridge use `cron(0 */2 * * ? *)`.

Related Cron Recipes