⏱OpsTools

Cron Expression for Every Day at Midnight

0 0 * * *→Runs once a day at 00:00
0
Minute
0–59
0
Hour
0–23
*
Day
1–31
*
Month
1–12
*
Weekday
0–7

Quick Examples

How It Works

The expression 0 0 * * * is one of the most common cron schedules. It triggers once per day at exactly midnight (00:00). By convention, many operational tasks — log rotation, daily reports, database maintenance — are scheduled at midnight when traffic is typically lowest.

Common Use Cases

  • 1Daily database backup
  • 2Rotating and archiving log files
  • 3Generating daily analytics reports

Linux Crontab Example

0 0 * * * /opt/backup/daily-backup.sh >> /var/log/backup.log 2>&1

Add this line to your crontab with crontab -e

Need a custom schedule?

Build your own cron expression visually with our generator.

Open Generator →