Back to Knowledge Base
Knowledge Base Server & Files Scheduled tasks with cron

Scheduled tasks with cron

Server & Files 28/11/2026
Cron runs commands on a schedule on your VPS — the heartbeat behind application maintenance and framework schedulers.

Edit the crontab with `crontab -e`. Each line has five time fields followed by the command: minute, hour, day of month, month and day of week.

The usual starting points are:

- `* * * * *` — every minute.
- `0 * * * *` — hourly.
- `0 3 * * *` — daily at 03:00 server time.

Send output you care about to a log file. A job that fails silently will only be noticed when something breaks. Keep scheduled tasks in one place so you can find them again after a restart.
Was this article helpful?