0 0 * * 0 — what this cron expression means
The cron expression 0 0 * * 0 runs every Sunday at midnight. Here is the field-by-field breakdown and what it means in plain English.
What 0 0 * * 0 means
It runs every Sunday at midnight.
Field by field
minute=0, hour=0 (midnight), day-of-month *, month *, day-of-week=0 (Sunday).
In cron, day-of-week 0 is Sunday (7 also works). So this fires once a week, at 00:00 on Sunday.
When it runs next
Next run: the coming Sunday at 00:00.
FAQ
What does 0 0 * * 0 mean?
It runs once a week, at midnight on Sunday. Day-of-week 0 is Sunday.
Is Sunday 0 or 7 in cron?
Both. 0 and 7 both mean Sunday; 1 is Monday through 6 Saturday.