⏱OpsTools

Cron Expression for Every Weekend

0 0 * * 0,6→Runs at midnight on Saturday and Sunday
0
Minute
0–59
0
Hour
0–23
*
Day
1–31
*
Month
1–12
0,6
Weekday
0–7

Quick Examples

How It Works

The expression 0 0 * * 0,6 uses a list in the day-of-week field. 0 = Sunday and 6 = Saturday, so the job runs on both weekend days. This complements the weekday schedule 1-5 and is useful for maintenance windows that should only happen during low-traffic weekends.

Common Use Cases

  • 1Weekend maintenance scripts
  • 2Heavy data migrations during low-traffic periods
  • 3Weekend-only promotional email campaigns

Linux Crontab Example

0 0 * * 0,6 /app/weekend-maintenance.sh

Add this line to your crontab with crontab -e

Need a custom schedule?

Build your own cron expression visually with our generator.

Open Generator →