Tools › Cron examples › every day at 3am

Cron expression for every day at 3am

The cron expression for every day at 3am is:

0 3 * * *

What it does

Runs once a day at 03:00 in the server's timezone.

Field by field

FieldValueMeaning
Minute0exactly 0
Hour3exactly 3
Day of month*every value
Month*every value
Day of week*every value

Typical uses

Backups, vacuuming databases, and other heavy work during the quietest hours.

Watch out for

Daylight saving changes can skip or repeat the 02:00-03:00 hour on servers that are not set to UTC, so 3am is safer than 2am.

Add it to your crontab

crontab -e, then add:

0 3 * * * /path/to/command >> /var/log/myjob.log 2>&1

Related schedules

every minuteevery 5 minutesevery 10 minutesevery 15 minutesevery 30 minutesevery hourevery 2 hoursevery day at midnightevery weekday at 9amevery 15 minutes during business hoursevery Mondayevery Sunday at midnighton weekendson the first day of every monthon the last day of the monthevery quartertwice a day
Copied to clipboard