Cron Every 3 Days

Run a cron job every 3 days with 0 0 */3 * *.

The cron expression 0 0 */3 * * uses the step operator (*/3) in the day-of-month field to run every 3 days. It triggers at midnight on days 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30 of each month. Note that the count resets at the start of each month, so the schedule is not perfectly uniform across month boundaries. Use cases for every-3-day schedules include periodic data exports, bi-weekly report generation, alternating maintenance windows, scheduled content publishing, and recurring health assessments that don't align with weekly or monthly boundaries. For Quartz Scheduler, use 0 0 */3 * ? (swap day-of-month and day-of-week, use ? for day-of-week). For AWS EventBridge, use cron(0 0 */3 * ? *) (add year field). For Kubernetes CronJob, use schedule: "0 0 */3 * *" directly. A limitation: */3 in the day-of-month field resets at each month boundary. For truly continuous every-3-days scheduling (including across month boundaries), store the last run date in a file or database and check it in your script. If you need business-day logic (skip weekends), cron cannot express this natively. Use a daily cron (0 0 * * *) with a script that calculates business-day intervals.

FAQ

  • What does the cron expression 0 0 */3 * * mean?

    The expression 0 0 */3 * * means: at minute 0, hour 0, day-of-month */3, month *, day-of-week *. Each field in the cron expression controls a different time component: minute, hour, day of month, month, and day of week.

  • How do I add 0 0 */3 * * to my crontab?

    Run crontab -e in your terminal to open your crontab editor. Add a new line: 0 0 */3 * * /path/to/your/script.sh. Save and exit. Verify with crontab -l. Make sure your script is executable (chmod +x script.sh) and uses full paths for all commands.

  • What is the equivalent of 0 0 */3 * * on Quartz / AWS / Kubernetes?

    Quartz Scheduler: 0 0 */3 * *. AWS EventBridge: cron(0 0 */3 * ? *). Kubernetes CronJob: schedule: "0 0 */3 * *" (standard 5-field format). Each platform has slight syntax differences — use our dialect switcher above to get the exact expression.

  • Does every-3-days reset at month boundaries?

    Yes. The */3 step in the day-of-month field resets on the 1st of each month. For continuous every-3-days scheduling across month boundaries, use a daily cron (0 0 * * *) and track the last-run date in a file or database.

  • What are common mistakes when using 0 0 */3 * *?

    Common pitfalls: (1) Cron uses a minimal PATH — always use full paths to commands and scripts. (2) Percent signs (%) must be escaped with backslash in crontab. (3) Cron runs in the system timezone — set CRON_TZ=UTC at the top of your crontab for consistent UTC scheduling. (4) Redirect output to prevent email spam: 0 0 */3 * * /path/command >> /var/log/myjob.log 2>&1. (5) Test your cron expression with crontab.guru or our validator above before deploying.

Platform Equivalents for 0 0 */3 * *

The cron expression 0 0 */3 * * has different syntax on various scheduling platforms. Here is the equivalent expression for each:

PlatformExpression
Unix / Linux crontab0 0 */3 * *
Quartz Scheduler (Java)0 0 */3 * *
AWS EventBridgecron(0 0 */3 * ? *)
Kubernetes CronJob0 0 */3 * *
Vercel Cron0 0 */3 * *
GitHub Actions0 0 */3 * * (UTC)

Key differences across platforms: Quartz uses 7 fields starting with seconds and supports L (last) and W (weekday) modifiers. AWS EventBridge requires a 6th year field and uses ? instead of * in day fields when the other day field is specified. Kubernetes uses standard 5-field Unix cron. Vercel Cron uses the same format but schedules are defined in vercel.json. GitHub Actions uses standard cron but runs in UTC timezone only, so adjust the hour field for your local timezone offset.

Getting Started with Cron

Follow these tips when setting up cron jobs in production:

  • Always use full paths to commands and scripts in your crontab, since cron runs with a minimal PATH environment (often just /usr/bin:/bin).
  • Redirect output to log files: command >> /var/log/myjob.log 2>&1 to capture errors and prevent cron from emailing you every execution.
  • Test your cron expression before deploying — use our validator above or crontab.guru to verify the schedule fires when you expect.
  • Set MAILTO="" at the top of your crontab to disable email notifications, or set MAILTO=your@email.com to receive error alerts.
  • Use flock or a PID file to prevent overlapping executions for jobs that may take longer than their scheduled interval.