At 03:00 every Sunday.
0 3 * * 0
Open in Crontab Generator
A typical weekly maintenance window: full backups, OS updates, long database maintenance.
| Field | Value | Matches |
|---|---|---|
| Minute | 0 | 0 |
| Hour | 3 | 3 |
| Day of month | * | every value |
| Month | * | every value |
| Day of week | 0 | Sunday |
0 3 * * 0 /path/to/job
Computed when this page loaded (2026-11-11 02:24 UTC), assuming the scheduler runs in UTC.
| # | UTC | Your local time |
|---|---|---|
| 1 | Sun 2026-11-15 03:00 | |
| 2 | Sun 2026-11-22 03:00 | |
| 3 | Sun 2026-11-29 03:00 | |
| 4 | Sun 2026-12-06 03:00 | |
| 5 | Sun 2026-12-13 03:00 | |
| 6 | Sun 2026-12-20 03:00 | |
| 7 | Sun 2026-12-27 03:00 | |
| 8 | Sun 2027-01-03 03:00 | |
| 9 | Sun 2027-01-10 03:00 | |
| 10 | Sun 2027-01-17 03:00 |
Kubernetes uses the same five fields. Set spec.timeZone (stable since Kubernetes 1.27), otherwise the schedule follows the time zone of kube-controller-manager.
apiVersion: batch/v1
kind: CronJob
metadata:
name: every-sunday-at-3am
spec:
schedule: "0 3 * * 0"
timeZone: "Etc/UTC"
concurrencyPolicy: Forbid
startingDeadlineSeconds: 300
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: job
image: debian:bookworm-slim
command: ["/bin/sh", "-c", "/app/run-job.sh"]
Workflow schedules use five-field cron in UTC and run only from the default branch. Runs at minute 0 are the most likely to be delayed or dropped when GitHub is busy; an odd minute such as 7 or 23 starts more reliably.
on:
schedule:
- cron: '0 3 * * 0' # UTC
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./run-job.sh
The equivalent OnCalendar= value is Sun *-*-* 03:00:00.
Check it with systemd-analyze calendar 'Sun *-*-* 03:00:00', which prints the next elapse time. Persistent=true runs a missed job after downtime, which classic cron never does.
[Unit]
Description=Every Sunday at 3am
[Timer]
OnCalendar=Sun *-*-* 03:00:00
Persistent=true
[Install]
WantedBy=timers.target
EventBridge rules take six fields (minute, hour, day-of-month, month, day-of-week, year) in UTC; EventBridge Scheduler can use a time zone. One of day-of-month and day-of-week must be ?, and day-of-week runs 1-7 from Sunday, so names are used here.
cron(0 3 ? * SUN *)
Quartz adds a leading seconds field and needs ? in either day field; days of the week are 1 (SUN) to 7 (SAT).
0 0 3 ? * SUN
Spring's @Scheduled(cron = ...) also uses six fields, but numbers days of the week 0-7 with Sunday as 0 or 7, like Unix cron; the names shown above work in both.
0 9 * * 1,3,50 9 * * 2,40 18 * * 1-50 0 * * 6,00 0 * * 50 0 * * 1