12.2. Scheduling Tasks¶
On this screen, you can automate such a routine maintenance operation as backing up or restarting your virtual environments.
Configure notifications as described in Managing Email Notification Settings to receive emails about scheduled tasks that have failed.
On the Scheduler screen, you can create a new task or review the tasks you have already assigned Virtuozzo Automator to perform regularly, if any.
The current system date and time for your convenience is displayed on top of the screen.
The existing tasks are displayed in the Scheduled Tasks section as the following table:
The name of the task.
The description of the task.
The action Virtuozzo Automator will perform in the framework of this task.
The virtual environments to be backed up or restarted. If you see the inscription Deleted, the virtual environments that this task is applied to were deleted from the physical server after the task was created.
The nearest date and time when the task is to be performed.
This column shows the current status of the task.
By default, 20 tasks are displayed on a page. To change the number of users shown per page, click the appropriate link below the table. You can also filter the tasks shown in the Scheduled Tasks table. To do that, click Show Search, enter search patterns in the search fields, and click Search. To change what search fields are displayed, click Customize. To have the full list of tasks back, click Reset Results. To show or hide columns, click Select Columns and set or clear the respective checkboxes.
On the Scheduler screen, you can:
To schedule an operation, click the New Task link.
To run a task immediately, select its check box (or the uppermost check box to run all the tasks at once) and click Run Now.
To enable or disable a task, select its check box (or the uppermost check box to enable or disable all the tasks) and click Enable or Disable.
To delete a task, select its check box (or the uppermost check box to delete all the tasks) and click Delete.
You can change the timetable of a task and the virtual environments list it performs on by clicking its name.
12.2.1. Choosing Tasks¶
The New Task: Select Action page enables you to schedule a task for one or several registered virtual environments.
Back Up Virtual Environment. You can create a task for one or several virtual environments to be backed up periodically or once. Having chosen this option, you will be able to specify the virtual environments list, the time and period for the scheduled backups. Virtual Environments can belong to different physical servers.
Restart Virtual Environments. You can create a task for one or several virtual environments to be restarted. Having chosen this option, you will be able to specify the virtual environments list, the time and period for the scheduled restarts. The virtual environments can belong to different physical servers.
Choose the task and click the Next button to set the details of the operation.
22.214.171.124. Scheduling Backup Tasks¶
To back up certain virtual environments at a certain time, you can schedule a backup with the parameters to be entered on the New Task: Back Up Virtual Environments screen.
In the Task Configuration section, enter task name and the description and enable the task if necessary.
In the First Run (or Next Run) section, specify:
first launch time;
first launch date selected from the Select date window.
In the Recurrence Pattern section, you can set the task to be performed once, daily or weekly:
if you select the Run once radio button, the task will be performed at the time and on the date set in the First Run section;
if you select the Daily radio button, the Repeat Daily section will open below, allowing you to set the following periodicity:
every specified number of days (Every N day(s)),
only on weekdays (Every weekday),
only on weekends (Every weekend day);
if you select the Weekly radio button, the Repeat Weekly section will open, allowing you to set weekly periodicity (Recur every N week(s)) and specific days of week to run the task on.
The End Date section is displayed only if the task is to be launched more than once. In this section, you can set the task to be:
performed repeatedly until manually disabled, removed or edited (the No end date radio button);
launched for the first time on the date set in the Task Details section, and for the last time, on the date selected in the Select date window next to the End Date radio button.
In the Virtual Environments to back up section, you can choose:
individual virtual environments,
entire Hardware Nodes. In this case, all virtual environments on the Node(s) will be added to the back up task.
Having selected virtual environments to back up, click the Add Virtual Environments or Add button and select virtual environments from the pop-up window. To remove a virtual environment from the list, select it and click the Remove Selected button.
For information on backup options, see Creating Virtual Environment Backups.
To save the task configuration, click Save, otherwise click Cancel.
126.96.36.199. Scheduling Restart Tasks¶
In the New Task: Restart Virtual Environment page, specify all the necessary details for the automatic restart of one or several virtual environments.
In the Task Configuration section, enter the name and the description of the task and indicate if the task is enabled. If you are just drafting a possible task, clear the Enabled check box.
In the First Run section, specify:
the time when the task will be launched first;
the date when the task will be launched first selected form the Select date window: to set the task to be run the very day you make these settings, click Today at the bottom of the Select date pop-up window.
In the Recurrence Pattern section, you may set the task to be performed once, or on a daily or weekly basis by selecting the corresponding radio button:
if you select the Run once radio button, the task will be performed at the time and date set in the First Run section;
if you select the Daily radio button, this opens the Repeat Daily section below where you can set the task to be run:
either once in a certain number of days to be entered into the corresponding field (the Every radio button);
or on working days only (the Every weekday radio button);
or on weekends only (the Every weekend day radio button);
if you select the Weekly radio button, this opens the Repeat Weekly section to set over what number of weeks (the Recur every field) and what weekday the task will be run.
The End Date section is displayed only if the task is to be launched more than once. In this section choose if the task will be:
repeatedly performed until it is manually disabled, removed or edited (the No end date radio button);
or launched for the first time on the date set in the Task Details section and for the last time on the date selected from the Select date window next to the End Date radio button.
The virtual environments the task is addressed to can be selected in the Restart Virtual Environment section. Click the Add Virtual Environments button and select the virtual environments you want to perform the task on from the pop-up window. To take a virtual environment out of the list, select it and click the Remove Selected button.
To save the task configuration, click Save, otherwise click Cancel.