CRON Format

 Content Previous Next

CRON, or Cron, is a powerful UNIX time format. With CRON time scheduling becomes flexible and powerful as never before. You may switch from an ordinary style schedule to a CRON-style schedule by enabling the 'Advanced mode' for the Periodical Schedule in the Start step of the Task Scenario.

 

CRON has certain rules which are outlined in this section.

Permitted values

Field

Permitted Value Range

Comment

Minute

0 – 59

 

Hour

0 – 23

 

Day of week

0 – 6

0 (zero) is Sunday

SUN – SAT not supported

Day of month

1 – 31

 

Month

1 – 12

JAN – DEC not supported

Special symbols

There are certain special symbols that help to configure CRON schedule:

 

Asterisk ('*'): means all values within the permitted rage of values for the selected field.

 

Plus ('+'): converts a value into an interval. For example, Minute: 5 means the fifth minute of an hour and Minute: +5 means every five minutes during an hour.

 

Hyphen ('-'): means a range including numbers that are used to limit the range. Example: 9-11 h means hours 9, 10, and 11.

 

Comma (','): used to separate values in the field.
Lists

A list is a combination of values set with special symbols and separated by comma. Lists are supported by AnyFileBackup.

 

Example: 0-4,8-12

Common examples

Field

Description

Minute

Hour

Day

Month

Weekday

+1

*

*

*

*

execute task every minute

0

0

*

*

*

execute task every midnight

0

+12

*

*

1-5

execute task at midnight and at noon from Monday to Friday

0

0

1

*

*

execute task at midnight after the end of every month

0

0

*

*

6

execute task at midnight on Saturday

15

+6

*

*

*

execute task on 15th minute every 6 hours (that is 0:15, 6:15, 12:15, 18:15)

0

8-16

*

*

1-5

execute task at the beginning of every hour from 8 in the morning till 16 in the evening from Monday to Friday

 Content Previous Next