Cron 排程 每個週末
0 0 * * 6,0
分鐘
小時
日(月)
月
星期
在 12:00 AM, 僅在 星期日 和 星期六
欄位分解
| 欄位 | 值 | 含義 |
|---|---|---|
| 分鐘 | 0 | at minute 0 |
| 小時 | 0 | at hour 0:00 |
| 日(月) | * | any value |
| 月 | * | any value |
| 星期 | 6,0 | at values 6,0 |
Crontab 行
0 0 * * 6,0 /path/to/script.shThe expression 0 0 * * 6,0 schedules a cron job to run 每個週末. This schedule belongs to the "天" category and is a popular choice for daily maintenance routines, backup operations, or recurring tasks tied to specific days of the week.