To setup a CRON in Virtualmin, you use the Webmin portion of the interface.
This tutorial covers how to setup a Cron job. Cron is a service for executing scheduled commands.
It assumes you have first logged into Virtualmin.
- Click
Webminon the top-left. - Click
System. - Click
Scheduled Cron Jobs. - Click
Create a new scheduled cron job. - Choose the user to run as, and input the username in
Execute cron job as. To run as the administrative user, inputroot. Root should only be used for global commands, we mostly recommend you use a specific user. - Enter the command to run into the
Commandfield. For example, if you want to receive a list of all running processes, enterps auxwfor the command. - Normally, you can skip
Input to command. That’s only used if your command requires input after it begins running. - Choose how frequently to run your command. By default, it will execute
Hourly, meaning it will execute at the top of the hour, every hour. - To enable the Cron job, click
Create.
Any output will be emailed to the root user.

—
Reference:
https://www.virtualmin.com/documentation/tutorial/how-to-setup-a-cron-job