Every Saturday at Noon Cron Schedule | CronBase

cron expression Standard
$ 0 12 * * 6

Every Saturday at noon

This cron expression triggers a task precisely at noon every Saturday. It is commonly used by system administrators and DevOps teams to execute weekly maintenance operations, generate weekly business intelligence reports, run deep database optimizations, or initiate full backups during typical weekend low-traffic periods when system load is minimal.

Minute
0
Hour
12
Day of Month
*
Month
*
Day of Week
6
How it works

Next 5 Runs

  • in 6d 15h
  • in 13d 15h
  • in 20d 15h
  • in 27d 15h
  • in 34d 15h

* Tools

Code & Implementations

Bash
#!/usr/bin/env bash
set -euo pipefail

# Define log file and lock file to prevent overlapping executions
LOG_FILE="/var/log/weekly_cleanup.log"
LOCK_FILE="/var/run/weekly_cleanup.lock"

exec 9>"$LOCK_FILE"
if ! flock -n 9; then
    echo "Error: Another instance of the weekly cleanup is already running." >&2
    exit 1
fi

echo "[$(date -u)] Starting weekly maintenance task..." >> "$LOG_FILE"
# Perform the maintenance work (e.g., clearing old temp files, rotating logs)
if /usr/local/bin/perform_maintenance.sh >> "$LOG_FILE" 2>&1; then
    echo "[$(date -u)] Weekly maintenance completed successfully." >> "$LOG_FILE"
else
    echo "[$(date -u)] Error: Weekly maintenance failed!" >> "$LOG_FILE"
    exit 1
fi
Setup notes

Save this script as weekly_cleanup.sh, make it executable with chmod +x weekly_cleanup.sh, and add it to your system crontab using crontab -e.

Last verified:

Partner UptimeRobot

Keep this cron job monitored 24/7

UptimeRobot alerts you the moment a scheduled job stops responding. Free plan monitors up to 50 endpoints — no credit card required.

Platform Equivalents

AWS EventBridge

Standard cron expressions often need conversion for AWS EventBridge schedules.

EventBridge Rule
cron(0 12 ? * 6 *)

Systemd Timer

OnCalendarSat *-*-* 12:00:00

my-task.timer
[Unit]
Description=Timer for cron expression: 0 12 * * 6

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

[Install]
WantedBy=timers.target

Last verified:

Frequently Asked Questions

How does daylight saving time affect this Saturday 12 PM schedule?

If your system timezone is local, daylight saving time shifts can cause the execution hour to shift relative to UTC. To ensure consistent operations, configure your cron daemon or scheduler to run exclusively in UTC or use explicit timezone settings.

Does the number 6 in this expression represent Saturday or Friday?

In standard POSIX cron, 0 represents Sunday and 6 represents Saturday. Some modern schedulers and dialects also allow 7 for Sunday, but 6 universally evaluates to Saturday across standard implementations.

What happens if the system is powered off on Saturday at noon?

Standard cron does not catch up on missed executions. If your server is offline at 12:00 PM on Saturday, the task will not run until the following Saturday. Use a tool like 'anacron' or a queue-based scheduler if catch-up execution is required.

How can I prevent multiple instances of this weekly task from overlapping?

While a weekly interval makes overlaps rare, long-running tasks can still hang. Use a distributed locking library (like Redis-based Redlock), a file-system lock using 'flock' in Bash, or set the Kubernetes 'concurrencyPolicy' to 'Forbid'.

Is Saturday noon a safe time to run heavy database maintenance?

This depends heavily on your business traffic profile. For B2B platforms, Saturday noon is typically a low-traffic valley. However, for B2C, retail, or entertainment apps, Saturday afternoon can be a peak traffic window. Always analyze your metrics first.

* Explore

Related expressions you might need

Last verified:

Was this helpful?