Backup Schedules
January 1st at 4 AM
Yearly backup. This page shows you how to implement this cron schedule with detailed examples and execution times.
1
Runs per day
0
Next executions
9
Expression length
Cron Expression
0 4 1 1 *
Human Readable
Every January 1 at 4:00 AM
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | When during the hour (0-59) |
| Hour | 4 | What hour of the day (0-23) |
| Day | 1 | What day of the month (1-31) |
| Month | 1 | What month (1-12) |
| Day of Week | * | What day of the week (0-7, 0=Sunday) |
Implementation Examples
Linux Crontab
0 4 1 1 * /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 4 1 1 * /app/script.sh" | crontab - && crond -f'
Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
name: january-1st-at-4-am
spec:
schedule: "0 4 1 1 *"
jobTemplate:
spec:
template:
spec:
containers:
- name: job
image: your-app:latest
command: ["/app/script.sh"]
restartPolicy: OnFailure
GitHub Actions
name: January 1st at 4 AM
on:
schedule:
- cron: '0 4 1 1 *'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run task
run: ./script.sh
Common Use Cases
Yearly backup
- • Database backups and archives
- • File system snapshots
- • Configuration backups
- • Log rotation and cleanup
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 Backup Schedules Examples
Every day at 2 AM
Daily database backup
0 2 * * *
Every Sunday at 3 AM
Weekly full backup
0 3 * * 0
First day of month at 1 AM
Monthly archive
0 1 1 * *
Every Saturday at 1:30 AM
Weekly log rotation
30 1 * * 6
Every 7 days at midnight
Weekly incremental backup
0 0 */7 * *
Every Sunday at 3:15 AM
Configuration backup
15 3 * * 0