If you need to run scripts on your hosting account at specific time, use the task scheduler in Plesk to make the system automatically run the scripts for you.
During installation of Plesk, the following tasks are automatically created:
autoreport.php
– delivers daily, weekly and monthly reports on domains (three separate tasks)backupmng
– initiates scheduled backing up of domains once every 30 minutesstatistics
– generates statistics on resource usage by domainsmysqldump.sh
- creates a backup copy of three MySQL databases: psadump, MySQL, and Horde databasesAs all these tasks are related to statistics, databases, and reports, it is strongly recommended that you neither change nor remove them.
To schedule a task:
You can schedule the time using the UNIX crontab entry format. In this format, you can:
To schedule the task to run every Nth period, enter the combination */N, where N is a value for this field (minute, hour, day, month). For example, */15 in the Minute field schedules the task to start every 15 minutes.
You can type the contracted names of months and days of the week, which are the first three letters: Aug, Jul, Mon, Sat, and so on. However, the contracted names cannot be separated with commas or used together with numbers.
For example, if you want to run the backup creation task at the specified time and have the backup file sent to your email, you need to specify the following command in the Command input box:
/usr/local/psa/admin/sbin/backupmng
To receive notifications when tasks are started:
To temporarily suspend execution of a scheduled task:
To resume execution of a scheduled task:
To cancel a task: