Create a CRON job
Newer DirectAdmin version
- Open Advanced Features → CRON Jobs.
- Click Add Cron Job.
- Fill in Minute, Hour, Day of Month, Month and Day of Week.
- Enter the complete command with absolute paths.
- Review the displayed frequency and click Create.
Older DirectAdmin version
- Open Advanced Features → Scheduled Tasks.
- Click Create Cron job.
- Fill in the five time fields;
*means every allowed value. - Enter the command and click Create.
The @reboot option
Run on @reboot executes the job after the server starts. The provider controls hosting reboots, so this is not a replacement for a persistent service or a regular schedule.
Safe first run
- Temporarily enable a log or email output.
- Select a near-future time and verify the result.
- Only then apply the final interval.
- Make sure two runs cannot overlap when a job takes longer.