DevOps 2025-08-31
Cron Jobs: Scheduled Tasks on Linux
Cron Syntax
# โโโโโโ minute (0-59)
# โ โโโโโโ hour (0-23)
# โ โ โโโโโโ day of month (1-31)
# โ โ โ โโโโโโ month (1-12)
# โ โ โ โ โโโโโโ day of week (0-6)
# * * * * * commandExamples
crontab -e
# Every day at 3am
0 3 * * * /scripts/backup.sh
# Every 5 minutes
*/5 * * * * /scripts/health.sh
# Monday at 9am
0 9 * * 1 /scripts/report.sh
#Sudofree#Cron Jobs