Previous page | Next page | Locate page |

## Scheduling Tasks

If you need to run scripts on your server at specific time, use the task scheduler facility on your server to make the system automatically run the scripts for you.

During installation of Plesk the following tasks are automatically created:

- Update Dr.Web Antivirus database – updates Dr.Web virus database
- Statistics calculation - generates statistics on resource usage, such as traffic and disk space.

As all these tasks are related to domain statistics, databases and reports, it is strongly recommended that you neither change nor remove these tasks.

Note. You can also schedule tasks on a per-domain basis. To do so, follow the same procedures listed below, but instead of going to Server > Scheduler Tasks, go to Domains > domain name > Scheduler Tasks.

To schedule a task:

1. Go to Server > Scheduler Tasks.
2. Click Add New Task.
3. Leave the Switched on checkbox selected if you want your scheduled task to be active immediately after the creation.
4. Input a name for your task in the Description field.
5. In Scheduler notification, specify whether the scheduler should notify you when it runs this task. The following options are available:
   - Switched off - do not nofity you.
   - Send to the default e-mail - send the notification to your default e-mail address.
   - Send to the e-mail I specify - send the nofitication to the e-mail specified in the corresponding field. After selecting this option, you need to input the required e-mail in the field on the right.

     Click Set to save scheduler notifications settings.

6. Specify which command to run. Type it into the Path to executable file input box. If you need to run the command with certain options, type them in the Arguments field.
7. Select the appropriate priority in the Task priority field. Task priority can be set to Low, Normal or High.
8. Specify when to run your command by selecting the appropriate checkboxes in the Hours, Days of Month, Months or Days of Week fields.
9. Click OK to schedule the task or click Run Now to schedule the task and immediately run it.

To temporarily suspend execution of a scheduled task:

1. Go to Server > Scheduler Tasks.
2. Choose a task that you wish to suspend and click on the command name.
3. Clear the Switched on checkbox.

To resume execution of scheduled task:

1. Go to Server > Scheduler Tasks.
2. Choose a task whose execution you wish to resume and click on the command name.
3. Select the Switched on checkbox.

To unschedule a task:

1. Go to Server > Scheduler Tasks.
2. Select a check box to the right of the task that you wish to unschedule.
3. Click Remove Selected.
4. Confirm removal and click OK.