Cron Expression for Daily at 2 AM
0 2 * * *→Runs once a day at 02:00Quick Examples
How It Works
0 2 * * * fires at 2:00 AM every day. This time slot is popular for heavy-duty operations like full database backups, data warehouse loads, or system updates, because 2 AM is typically the lowest-traffic period. It avoids the 'midnight rush' where many cron jobs compete for resources.Common Use Cases
- 1Full database dump / pg_dumpall
- 2Data warehouse nightly ETL load
- 3System package updates (apt upgrade, yum update)
Linux Crontab Example
0 2 * * * pg_dumpall -U postgres > /backups/full_$(date +\%F).sqlAdd this line to your crontab with crontab -e
Need a custom schedule?
Build your own cron expression visually with our generator.
More Daily Schedules
Runs once a day at 00:00
0 0 * * *
Runs once a day at 06:00
0 6 * * *
Runs once a day at 12:00 PM
0 12 * * *
Runs once every day at 01:00
0 1 * * *
Runs once every day at 03:00
0 3 * * *
Runs once every day at 04:00
0 4 * * *
Runs once every day at 05:00
0 5 * * *
Runs once every day at 07:00
0 7 * * *
Runs once every day at 08:00
0 8 * * *
Runs once every day at 09:00
0 9 * * *
Runs once every day at 10:00
0 10 * * *
Runs once every day at 11:00
0 11 * * *
Runs once every day at 13:00
0 13 * * *
Runs once every day at 14:00
0 14 * * *
Runs once every day at 15:00
0 15 * * *
Runs once every day at 16:00
0 16 * * *
Runs once every day at 17:00
0 17 * * *
Runs once every day at 18:00
0 18 * * *
Runs once every day at 19:00
0 19 * * *
Runs once every day at 20:00
0 20 * * *
Runs once every day at 21:00
0 21 * * *
Runs once every day at 22:00
0 22 * * *
Runs once every day at 23:00
0 23 * * *
Runs once every day at 6:30 AM
30 6 * * *
Runs once every day at 9:30 AM
30 9 * * *
Runs once every day at 12:30 PM
30 12 * * *
Runs once every day at 9:30 PM
30 21 * * *
Runs once every day at 9:15 AM
15 9 * * *
Runs once every day at 5:45 PM
45 17 * * *
Runs at 00:00 and 12:00 every day
0 0,12 * * *
Runs at 23:59 every day
59 23 * * *
Runs at 00:05 every day
5 0 * * *
Runs at 12:05 PM every day
5 12 * * *
Runs at 23:55 every day
55 23 * * *