
|
|
|
| 14.1 VIOM Backup Service |
Field | Mandatory | Values | Special characters | |
Month | yes | 1 | - 12 or JAN - DEC , - * / | |
Day of Week | yes | 1 | - 7 or SUN - SAT | , - * / ? L # |
Year | no | 1970 - 2099 | , - * / |
Table 5: Fields of a Quartz cron expression
Example
A simple example would be:
0 0 19 24 DEC ? 2010
This cron expression would trigger a backup job at 7.00 p.m. on 24.12.2010.
The following table shows the use of special characters in a cron expression:
Special | Description | Example | Meaning of |
characters |
|
| the example |
x,y | Describes a list of 2 or | * * 9 ? * SAT,SUN | At 9 a.m. |
| more values |
| every Sat- |
|
|
| urday and Sun- |
|
|
| day |
A range of values from x to | * * 6 ? * | At 6 a.m. | |
| y inclusive. |
| every Monday |
|
|
| to Friday |
* | Describes all possible valu- * * * ? * * | Every second | |
| es |
|
|
x/y | Describes a sequence | * 0/5 * 1 * ? | Every 5 sec- |
| starting with x and incre- |
| onds starting |
| mented by y |
| at 0:00 on the |
|
|
| first day of |
|
|
| each month |
ServerView | 341 |