Cron Every Sunday at 3 AM

Schedule a cron job every Sunday at 3 AM using 0 3 * * 0. Detailed field-by-field breakdown and guidance for weekly overnight maintenance jobs.

Cron Expression

0 3 * * 0

Field Breakdown

FieldValueMeaning
Minute0At 0
Hour3At 3
Day of Month*Every day of the month (1–31)
Month*Every month (1–12)
Day of Week0At Sunday

Detailed Explanation

The cron expression 0 3 * * 0 schedules a task to run once per week on Sunday at exactly 3:00 AM.

Field-by-field breakdown:

  • 0 (Minute): At minute 0. The task fires at the top of the hour.
  • 3 (Hour): At hour 3 (3 AM). The task runs during the deep overnight window when system usage is typically at its lowest.
  • * (Day of Month): Every day from 1 through 31. No restriction on the day of the month.
  • * (Month): Every month from January through December. No restriction on which month.
  • 0 (Day of Week): Sunday only. The value 0 represents Sunday in standard cron.

This means your task will execute once per week, every Sunday at 3:00 AM server time. Sunday at 3 AM is widely considered the optimal window for heavy weekly maintenance. It combines the lowest-traffic day of the week with the lowest-traffic hour of the day, creating the maximum resource availability for intensive operations. This is the ideal time for tasks like full database vacuuming, storage cleanup, weekly security audits, or rebuilding large search indexes. The early Sunday timing ensures that any issues can be detected and resolved well before Monday business hours. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.

Use Case

Ideal for running weekly PostgreSQL VACUUM FULL operations on large tables during the lowest-traffic window to reclaim disk space and optimize performance.

Try It — Interactive Builder

Every Sunday at 3:00 AM

**/5*/10*/15*/300
**/2*/3*/6*/120
*1151,15*/2
*11,4,7,101,7
*1-50,615

Next 10 Executions

1.Sun, Mar 15, 2026, 03:00 AM
2.Sun, Mar 22, 2026, 03:00 AM
3.Sun, Mar 29, 2026, 03:00 AM
4.Sun, Apr 5, 2026, 03:00 AM
5.Sun, Apr 12, 2026, 03:00 AM
6.Sun, Apr 19, 2026, 03:00 AM
7.Sun, Apr 26, 2026, 03:00 AM
8.Sun, May 3, 2026, 03:00 AM
9.Sun, May 10, 2026, 03:00 AM
10.Sun, May 17, 2026, 03:00 AM

Ctrl+Shift+C to copy expression

Customize this expression