Field-by-Field Breakdown of `0 0 * * 6,0`
| Position | Field Name | Allowed Values | Value in `0 0 * * 6,0` | Evaluation Meaning |
|---|---|---|---|---|
| 1 | Minute | 0 – 59 | 0 | 0 (At minute 0) |
| 2 | Hour | 0 – 23 | 0 | 0 (At midnight / 00:00) |
| 3 | Day of Month | 1 – 31 | * | * (Every day of the month) |
| 4 | Month | 1 – 12 | * | * (Every month) |
| 5 | Day of Week | 0 – 6 (Sun-Sat) | 6,0 | 6,0 (Saturday and Sunday) |
Weekend List Notation & System Optimization
Weekend scheduling is popular for long-running batch jobs, training machine learning models, database defragmentation, and deep security audits that require sustained server capacity.
In cron syntax, lists are created with commas without spaces. `6,0` (or `0,6`) specifies Saturday and Sunday. Some modern implementations also accept `SAT,SUN`.
Running heavy jobs over the weekend allows systems to recover before Monday morning business traffic begins, ensuring database buffer caches and search indices are primed.
Common Production Scenarios for `0 0 * * 6,0`
Deep Security Audit & Vulnerability Scanning
Executes full filesystem malware scans and container vulnerability audits with ClamAV and Trivy.
/usr/bin/trivy fs / --quiet >> /var/log/vuln-scan.logSearch Index Full Rebuild & Optimization
Performs full reindexing and vector embedding generation on catalog items without impacting daytime latency.
/usr/bin/php /var/www/artisan search:reindex-allCold Log Compression & Archive to R2
Gzips and transfers week-old application access logs to Cloudflare R2 bucket for long-term retention.
/usr/local/bin/archive-weekly-logs.shProduction Gotchas When Running `0 0 * * 6,0`
- Spacing in Lists: Never put spaces in cron lists (e.g. `6, 0`). A space causes cron to parse the `0` as the command field, causing silent syntax errors.
- Midnight Timing: Remember that Saturday's run (`0 0 * * 6`) triggers at the very start of Saturday (Friday night / Saturday morning).
- Resource Depletion: Long weekend batches must finish before Monday 08:00 AM local business time.
Frequently Asked Questions About `0 0 * * 6,0`
Can I write `0,6` instead of `6,0`?
Yes, the order of numbers in a comma-separated list does not matter. Both `0,6` and `6,0` specify Saturday and Sunday.
Can I use `SAT,SUN` instead of `6,0`?
Yes, on modern Linux distributions, `0 0 * * SAT,SUN` is fully supported and equivalent to `0 0 * * 6,0`.
How do I run a job at 2 AM on weekends?
Set the hour field to `2`: `0 2 * * 6,0 /path/to/script.sh`.