Skip to main content

Cron Expression: Sunday at 2 AM (Maintenance Window)

Runs every Sunday at 2:00 AM for maintenance. Copy and use this cron expression: 0 2 * * 0

Sunday at 2 AM (Maintenance Window)

Runs every Sunday at 2:00 AM for maintenance

0 2 * * 0

Common Use Cases:

Weekly maintenance, system updates

Example Applications:

  • System updates
  • Weekly maintenance
  • Security patches

How to Use This Cron Expression

1. Linux/Unix Crontab:

0 2 * * 0 /path/to/your/script.sh

2. Edit Your Crontab:

crontab -e

3. In CI/CD Systems:

Many CI/CD platforms (GitHub Actions, GitLab CI, etc.) use cron expressions for scheduled workflows. Use this expression in your workflow configuration files.

Create Custom Expressions

Need a different schedule? Use our interactive cron generator to create custom expressions.

Open Cron Generator

FAQ: Sunday at 2 AM (Maintenance Window) Cron Expression

This cron expression (0 2 * * 0) runs every sunday at 2:00 am for maintenance. Simply copy the expression and add it to your crontab file or job scheduler. For example: 0 2 * * 0 /path/to/your/script.sh