Also from our developer toolkit network — JSON Tools Kit · see all
Maintenance Tasks

Every Sunday at 5 AM

Server restart and updates. This page shows you how to implement this cron schedule with detailed examples and execution times.

1
Runs per day
10
Next executions
9
Expression length

Cron Expression

0 5 * * 0

Human Readable

Every Sunday at 5:00 AM

Field Breakdown

Field Value Meaning
Minute 0 When during the hour (0-59)
Hour 5 What hour of the day (0-23)
Day * What day of the month (1-31)
Month * What month (1-12)
Day of Week 0 What day of the week (0-7, 0=Sunday)

Next 10 Execution Times

2026-08-02 05:00:00 UTC
2026-08-09 05:00:00 UTC
2026-08-16 05:00:00 UTC
2026-08-23 05:00:00 UTC
2026-08-30 05:00:00 UTC
2026-09-06 05:00:00 UTC
2026-09-13 05:00:00 UTC
2026-09-20 05:00:00 UTC
2026-09-27 05:00:00 UTC
2026-10-04 05:00:00 UTC

Note: Times shown in UTC. Adjust for your local timezone as needed.

Implementation Examples

Linux Crontab

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

Add this line to your crontab file using crontab -e

Docker Compose

services:
  cron-job:
    image: your-app:latest
    command: |
      sh -c 'echo "0 5 * * 0 /app/script.sh" | crontab - && crond -f'

Kubernetes CronJob

apiVersion: batch/v1
kind: CronJob
metadata:
  name: every-sunday-at-5-am
spec:
  schedule: "0 5 * * 0"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: job
            image: your-app:latest
            command: ["/app/script.sh"]
          restartPolicy: OnFailure

GitHub Actions

name: Every Sunday at 5 AM
on:
  schedule:
    - cron: '0 5 * * 0'
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run task
        run: ./script.sh

Common Use Cases

Server restart and updates

  • • Server restarts and updates
  • • Cache and temporary file cleanup
  • • Database optimization
  • • System resource management

Test This Expression

Use our free cron tools to test and validate this expression: