| 1 |
.TH ANACRONTAB 5 2025-12-17 "The Debian Project" "Anacron Users' Manual" |
| 2 |
.SH NAME |
| 3 |
/etc/anacrontab \- configuration file for anacron |
| 4 |
.SH DESCRIPTION |
| 5 |
The file |
| 6 |
.I /etc/anacrontab |
| 7 |
describes the jobs controlled by \fBanacron\fR(8).\& |
| 8 |
Its lines can be of three kinds: job-description lines, environment |
| 9 |
assignments, or empty lines.\& |
| 10 |
.PP |
| 11 |
Job-description lines are of one of these four forms: |
| 12 |
.PP |
| 13 |
period delay job-identifier command |
| 14 |
.PP |
| 15 |
@period_name delay job-identify command |
| 16 |
.PP |
| 17 |
period delay job-identify/hash command |
| 18 |
.PP |
| 19 |
@period_name delay job-identify/hash command |
| 20 |
.PP |
| 21 |
The |
| 22 |
.I period |
| 23 |
is specified in days, the |
| 24 |
.I delay |
| 25 |
in minutes.\& |
| 26 |
The |
| 27 |
.I job-identifier |
| 28 |
can contain any non-blank character, except slashes.\& |
| 29 |
It is used to identify the job in Anacron messages, and as the name for the |
| 30 |
job's timestamp file.\& |
| 31 |
The |
| 32 |
.I job-identifier |
| 33 |
can be followed by a forward slash (\fB/\fR) and a hash.\& |
| 34 |
The |
| 35 |
.I hash |
| 36 |
verifies that a file in the command has not changed before running a job.\& |
| 37 |
The |
| 38 |
.I command |
| 39 |
can be any shell command.\& |
| 40 |
The fields can be separated by blank spaces or tabs.\& |
| 41 |
.I period_name |
| 42 |
can be set to |
| 43 |
.B daily, |
| 44 |
.B weekly, |
| 45 |
.B monthly, |
| 46 |
or |
| 47 |
.BR yearly .\& |
| 48 |
This will ensure jobs are only run once a day, once every seven days, and |
| 49 |
once a month\[em]no matter the number of days in this month or the |
| 50 |
previous month; or analogously for the year.\& |
| 51 |
.PP |
| 52 |
Environment assignment lines are of the form: |
| 53 |
.PP |
| 54 |
VAR = VALUE |
| 55 |
.PP |
| 56 |
Spaces around |
| 57 |
.I VAR |
| 58 |
are removed.\& |
| 59 |
No spaces around |
| 60 |
.I VALUE |
| 61 |
are allowed \%(unless you want them to be part of the value).\& |
| 62 |
The assignment takes effect from the next line to the end of the file, or to |
| 63 |
the next assignment of the same variable.\& |
| 64 |
.PP |
| 65 |
Empty lines are either blank lines, line containing white-space only, or lines |
| 66 |
with white-space followed by a \&'#'\& followed by an arbitrary comment.\& |
| 67 |
.PP |
| 68 |
You can continue a line onto the next line by ending it with a back slash (\fB\e\fR).\& |
| 69 |
.SH "SEE ALSO" |
| 70 |
\fBanacron\fR(8) |
| 71 |
.PP |
| 72 |
The Anacron |
| 73 |
.I README |
| 74 |
file.\& |
| 75 |
.SH AUTHOR |
| 76 |
Itai Tzur \%<[email protected]> |
| 77 |
.PP |
| 78 |
Currently maintained by Lance Lin \%<[email protected]>.\& |