Run a Cron Job Every Weekend
The day-of-week list 6,0 matches Saturday and Sunday, so 0 10 * * 6,0 runs at 10:00 on both weekend days and never on weekdays. Weekends are a good window for heavy maintenance — reindexing, full backups, large migrations — when traffic is at its lowest.
0 10 * * 6,0In plain English: At 10:00, on Saturday and Sunday.
Field by field
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | 0 |
| Hour | 10 | 10 |
| Day of month | * | every day |
| Month | * | every month |
| Day of week | 6,0 | Saturday and Sunday |
Variations
0 10 * * SAT,SUNthe same with day names0 10 * * 6-7as a range — 7 also means Sunday0 3 * * 6Saturdays only, at 03:00Tweak any of these in the crontab explainer to see the schedule in plain English and its next run times.
Frequently asked questions
Why can't I write 6-0 for the weekend?
Ranges must go from low to high, so 6-0 is invalid. Use the list 6,0, the range 6-7 (7 is also Sunday), or SAT,SUN.
How do I run every hour at weekends?
Use a wildcard hour with the weekend days: 0 * * * 6,0 runs on the hour, all day Saturday and Sunday.
New to cron syntax? Read Cron Expressions Explained, Field by Field. Job not firing? Work through Cron Job Not Running? 10 Things to Check.