A Cron Job is a task the server runs on a schedule: every minute, daily at 3 AM, weekly, etc. Used for backups, mailings, data updates, cache cleaning.
Where to find it
- Log into cPanel
- Advanced → Cron Jobs
Creating a job
- In Email set your address — output will be mailed (or leave empty)
- In Common Settings pick a preset or set manually:
- Minute: 0–59
- Hour: 0–23
- Day: 1–31
- Month: 1–12
- Weekday: 0–6 (0=Sunday)
- In Command enter:
php /home/USER/public_html/cron.phpcd /home/USER/scripts && bash backup.shwget -q -O - https://site.tj/cron/run - Click Add New Cron Job
Schedule examples
- Every minute:
* * * * * - Every hour at minute 0:
0 * * * * - Daily at 3:30 AM:
30 3 * * * - Every Sunday at 6 AM:
0 6 * * 0 - Every 15 minutes:
*/15 * * * *
Tips
- Don't run more than once a minute — overloads the server
- Long jobs — start via SSH + nohup or with a timestamp
- Log output: append
>> /home/USER/cron.log 2>&1at the end - Use full PHP/python paths:
/usr/local/bin/php