The translation is temporarily closed for contributions due to maintenance, please come back later.
English
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-22
#period in days delay in minutes job-identifier command
1 5 cron.daily nice run-parts /etc/cron.daily
7 25 cron.weekly nice run-parts /etc/cron.weekly
@monthly 45 cron.monthly nice run-parts /etc/cron.monthly
The first three lines define the variables that configure the environment in which the anacron tasks run:
`SHELL` — shell environment used for running jobs (in the example, the Bash shell)
`PATH` — paths to executable programs
`MAILTO` — username of the user who receives the output of the anacron jobs by email
If the `MAILTO` variable is not defined (`MAILTO=`), the email is not sent.
The next two variables modify the scheduled time for the defined jobs:
`RANDOM_DELAY` — maximum number of minutes that will be added to the `delay in minutes` variable which is specified for each job
The minimum delay value is set, by default, to 6 minutes.
If `RANDOM_DELAY` is, for example, set to `12`, then between 6 and 12 minutes are added to the `delay in minutes` for each job in that particular anacrontab. `RANDOM_DELAY` can also be set to a value below `6`, including `0`. When set to `0`, no random delay is added. This proves to be useful when, for example, more computers that share one network connection need to download the same data every day.
`START_HOURS_RANGE` — interval, when scheduled jobs can be run, in hours
In case the time interval is missed, for example due to a power failure, the scheduled jobs are not executed that day.
The remaining lines in the `/etc/anacrontab` file represent scheduled jobs and follow this format:
period in days delay in minutes job-identifier command
`period in days` — frequency of job execution in days
The property value can be defined as an integer or a macro (`@daily`, `@weekly`, `@monthly`), where `@daily` denotes the same value as integer 1, `@weekly` the same as 7, and `@monthly` specifies that the job is run once a month regardless of the length of the month.
`delay in minutes` — number of minutes anacron waits before executing the job
The property value is defined as an integer. If the value is set to `0`, no delay applies.
`job-identifier` — unique name referring to a particular job used in the log files