Maintenance Tasks
First day every 3 months
Quarterly maintenance. This page shows you how to implement this cron schedule with detailed examples and execution times.
1
Runs per day
0
Next executions
11
Expression length
Cron Expression
0 0 1 */3 *
Human Readable
At minute 0, hour 0, day 1, month */3
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | When during the hour (0-59) |
| Hour | 0 | What hour of the day (0-23) |
| Day | 1 | What day of the month (1-31) |
| Month | */3 | What month (1-12) |
| Day of Week | * | What day of the week (0-7, 0=Sunday) |
Implementation Examples
Linux Crontab
0 0 1 */3 * /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 0 1 */3 * /app/script.sh" | crontab - && crond -f'
Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
name: first-day-every-3-months
spec:
schedule: "0 0 1 */3 *"
jobTemplate:
spec:
template:
spec:
containers:
- name: job
image: your-app:latest
command: ["/app/script.sh"]
restartPolicy: OnFailure
GitHub Actions
name: First day every 3 months
on:
schedule:
- cron: '0 0 1 */3 *'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run task
run: ./script.sh
Common Use Cases
Quarterly maintenance
- • 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:
Learn More About Cron
Understand the syntax and patterns behind this expression:
More Maintenance Tasks Examples
Every Sunday at 5 AM
Server restart and updates
0 5 * * 0
Every 3 days at midnight
Log cleanup
0 0 */3 * *
1st and 15th at 6 AM
Bi-monthly maintenance
0 6 1,15 * *
Weekdays at 7 AM
Daily system check
0 7 * * 1-5
Every Saturday at 10 PM
Weekly optimization
0 22 * * 6
Every Sunday at 3:30 AM
Cache cleanup
30 3 * * 0