All recipes

Cron recipe

Cron job every 7 days: the exact expression

The expression

five-field cron
0 0 */7 * *

Paste it into crontab -e, your platform cron config, or tool.crontap.com/cronjob-debugger to preview the next runs.

What it does

Runs at midnight on days 1, 8, 15, 22, and 29 of each month. It does not mean every Sunday or a continuous 168-hour interval because the day-of-month count resets monthly.

When to use it

  • Rolling-style weekly data pulls

    Fetch a report roughly weekly when a specific weekday does not matter and month-based dates are acceptable.

  • Periodic maintenance reviews

    Check backups, integrations, or stale records on a visible set of monthly dates.

Common variations

  • 0 7 */7 * *

    The same stepped calendar days at 7:00am instead of midnight.

  • 0 0 * * 0

    Every Sunday at midnight, for a true weekday-anchored weekly schedule.

Run this with Crontap

External HTTP cron hits your URL on this schedule, records every run, and emails you when a run fails. No daemon on the box, no drift when the server reboots. Pro schedules down to a 1-minute cadence, from $2.99/mo and scaling as you grow.

Related recipes

More patterns in the cron syntax cheat sheet and what is a cron job in Linux.

FAQ

What is the cron expression for every 7 days?
Use 0 0 */7 * * (standard five-field cron). Verify the next run times in the free cron debugger before you deploy.
Can Crontap run this schedule?
Cron counts days of the month, so `0 0 */7 * *` restarts on the 1st and the gap at a month boundary can be shorter than 7 days. For a true weekly schedule with consistent 7-day calendar spacing, run on a fixed weekday instead (for example `0 0 * * 1` for every Monday at midnight).