T
ToolPrime

Cron Expression for Every Saturday at 2 AM

Run a cron job every Saturday at 2 AM using 0 2 * * 6. A low-traffic weekend time ideal for heavy maintenance and full backups.

Expression

0 2 * * 6

At 02:00 every Saturday

Use Cases

Code Examples

Crontab

# At 02:00 every Saturday
0 2 * * 6 /path/to/your/script.sh

GitHub Actions

name: Scheduled Job
on:
  schedule:
    - cron: '0 2 * * 6'
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: echo "Running Every Saturday at 2 AM"

systemd Timer

[Unit]
Description=Every Saturday at 2 AM timer

[Timer]
OnCalendar=*-*-* *:*:00
Persistent=true

[Install]
WantedBy=timers.target

Tips

Frequently Asked Questions

Why Saturday at 2 AM?

Saturday at 2 AM is typically the lowest-traffic time for most web applications. It provides a large maintenance window before the weekend and before anyone might notice issues.

How do I also run on Sunday?

Add 0 to the day-of-week field: 0 2 * * 0,6 runs at 2 AM on both Saturday and Sunday.

Related Cron Expressions