👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

How to schedule a cron job every day at 2am?

To schedule a cron job every day at 2AM, use the following syntax:

  0  2  *  *  * 	user-name 	/path/to/command
# |  |  |  |  |
# |  |  |  |  .------ Every day of the week
# |  |  |  .--------- Every month
# |  |  .------------ Every day
# |  .--------------- When hours equal to 2 (2AM)
# .------------------ When minutes equal 0

More