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
- • Running weekly full database backups
- • Performing system maintenance and updates
- • Running extended security audit scans
- • Cleaning up and archiving weekly logs
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
- ✓ Saturday at 2 AM is one of the lowest-traffic periods for most applications
- ✓ Allows several hours before anyone might notice issues
- ✓ Be aware of DST transitions near 2 AM in March/November
- ✓ A good slot for tasks that may take several hours
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.