1ANACRONTAB(5)                    File Formats                    ANACRONTAB(5)
2
3
4

NAME

6       /etc/anacrontab - configuration file for Anacron
7

DESCRIPTION

9       The /etc/anacrontab configuration file describes the jobs controlled by
10       anacron(8).  It can  contain  three  types  of  lines:  job-description
11       lines, environment assignments, or empty lines.
12
13       Job-description lines can have the following format:
14
15          period in days   delay in minutes   job-identifier   command
16
17       The  period  in days variable specifies the frequency of execution of a
18       job in days.  This variable can be represented by an integer or a macro
19       (@daily, @weekly, @monthly), where @daily denotes the same value as the
20       integer 1, @weekly the same as 7, and @monthly specifies that  the  job
21       is run once a month, independent on the length of the month.
22
23       The  delay  in minutes variable specifies the number of minutes anacron
24       waits, if necessary, before executing a job.  This variable  is  repre‐
25       sented by an integer where 0 means no delay.
26
27       The  job-identifier  variable specifies a unique name of a job which is
28       used in the log files.
29
30       The command variable specifies the command to execute.  The command can
31       either  be a command such as ls /proc >> /tmp/proc or a command to exe‐
32       cute a custom script.
33
34       Environment assignment lines can have the following format:
35
36          VAR=VALUE
37
38       Any spaces around VAR are removed.  No spaces around VALUE are  allowed
39       (unless  you want them to be part of the value).  The specified assign‐
40       ment takes effect from the next line until the end of the file,  or  to
41       the next assignment of the same variable.
42
43       The  START_HOURS_RANGE  variable  defines  an  interval (in hours) when
44       scheduled jobs can be run.  In case this time interval is  missed,  for
45       example, due to a power down, then scheduled jobs are not executed that
46       day.
47
48       The RANDOM_DELAY variable denotes the maximum number  of  minutes  that
49       will  be  added to the delay in minutes variable which is specified for
50       each job.  A RANDOM_DELAY set to  12  would  therefore  add,  randomly,
51       between  0  and 12 minutes to the delay in minutes for each job in that
52       particular anacrontab.  When set to 0, no random delay is added.
53
54       Empty lines are either blank lines, line containing white spaces  only,
55       or  lines  with white spaces followed by a '#' followed by an arbitrary
56       comment.
57
58       You can continue a line onto the next line by adding a '\' at  the  end
59       of it.
60
61       In  case you want to disable Anacron, add a line with 0anacron which is
62       the   name   of   the   script   running   the   Anacron    into    the
63       /etc/cron.hourly/jobs.deny file.
64

EXAMPLE

66       This  example shows how to set up an Anacron job similar in functional‐
67       ity to /etc/crontab which starts all regular jobs between 6:00 and 8:00
68       only.  A RANDOM_DELAY which can be 30 minutes at the most is specified.
69       Jobs will run serialized in a queue where  each  job  is  started  only
70       after the previous one is finished.
71
72       # environment variables
73       SHELL=/bin/sh
74       PATH=/sbin:/bin:/usr/sbin:/usr/bin
75       MAILTO=root
76       RANDOM_DELAY=30
77       # Anacron jobs will start between 6am and 8am.
78       START_HOURS_RANGE=6-8
79       # delay will be 5 minutes + RANDOM_DELAY for cron.daily
80       1         5    cron.daily          nice run-parts /etc/cron.daily
81       7         0    cron.weekly         nice run-parts /etc/cron.weekly
82       @monthly  0    cron.monthly        nice run-parts /etc/cron.monthly
83

SEE ALSO

85       anacron(8), crontab(1)
86
87       The Anacron README file.
88

AUTHOR

90       Itai Tzur ⟨itzur@actcom.co.il⟩
91
92       Currently  maintained  by  Pascal  Hakim  ⟨pasc@(debian.org|redellipse.
93       net)⟩.
94
95       For Fedora, maintained by Marcela Mašláňová ⟨mmaslano@redhat.com⟩.
96
97
98
99cronie                            2012-11-22                     ANACRONTAB(5)
Impressum