📄 amanda.conf.5
字号:
.\" Title: amanda.conf.\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>.\" Date: 05/13/2008.\" Manual: .\" Source: .\".TH "AMANDA\.CONF" "5" "05/13/2008" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"amanda.conf - Main configuration file for Amanda, the Advanced Maryland Automatic Network Disk Archiver.SH "DESCRIPTION".PP\fIamanda\.conf\fRis the main configuration file for\fIAmanda\fR\. This manpage lists the relevant sections and parameters of this file for quick reference\..PPThe file\fB<CONFIG_DIR>/<config>/amanda\.conf\fRis loaded\..SH "PARAMETERS".PPThere are a number of configuration parameters that control the behavior of the\fIAmanda\fRprograms\. All have default values, so you need not specify the parameter in\fBamanda\.conf\fRif the default is suitable\..PPLines starting with # are ignored, as are blank lines\. Comments may be placed on a line with a directive by starting the comment with a #\. The remainder of the line is ignored\..PPKeywords are case insensitive, i\.e\.\fBmailto\fRand\fBMailTo\fRare treated the same\..PPInteger arguments may have one of the following (case insensitive) suffixes, some of which have a multiplier effect:.SS "POSSIBLE SUFFIXES".PP\fBb byte bytes\fR.RS 4Some number of bytes\..RE.PP\fBbps\fR.RS 4Some number of bytes per second\..RE.PP\fBk kb kbyte kbytes kilobyte kilobytes\fR.RS 4Some number of kilobytes (bytes*1024)\..RE.PP\fBkps kbps\fR.RS 4Some number of kilobytes per second (bytes*1024)\..RE.PP\fBm mb meg mbyte mbytes megabyte megabytes\fR.RS 4Some number of megabytes (bytes*1024*1024)\..RE.PP\fBmps mbps\fR.RS 4Some number of megabytes per second (bytes*1024*1024)\..RE.PP\fBg gb gbyte gbytes gigabyte gigabytes\fR.RS 4Some number of gigabytes (bytes*1024*1024*1024)\..RE.PP\fBtape tapes\fR.RS 4Some number of tapes\..RE.PP\fBday days\fR.RS 4Some number of days\..RE.PP\fBweek weeks\fR.RS 4Some number of weeks (days*7)\..sp.it 1 an-trap.nr an-no-space-flag 1.nr an-break-flag 1.brNoteThe value\fBinf\fRmay be used in most places where an integer is expected to mean an infinite amount\..spBoolean arguments may have any of the values\fBy\fR,\fByes\fR,\fBt\fR,\fBtrue\fRor\fBon\fRto indicate a true state, or\fBn\fR,\fBno\fR,\fBf\fR,\fBfalse\fRor\fBoff\fRto indicate a false state\. If no argument is given,\fBtrue\fRis assumed\..RE.SS "PARAMETERS".PP\fBorg\fR \fI string\fR.RS 4Default:\fIdaily\fR\. A descriptive name for the configuration\. This string appears in the Subject line of mail reports\. Each\fIAmanda\fRconfiguration should have a different string to keep mail reports distinct\..RE.PP\fBmailto\fR \fI string\fR.RS 4Default:\fIoperators\fR\. A space separated list of recipients for mail reports\..RE.PP\fBdumpcycle\fR \fI int\fR.RS 4Default:\fI10 days\fR\. The number of days in the backup cycle\. Each disk will get a full backup at least this often\. Setting this to zero tries to do a full backup each run\..sp.it 1 an-trap.nr an-no-space-flag 1.nr an-break-flag 1.brNoteThis parameter may also be set in a specific\fBdumptype\fR(see below)\. This value sets the default for all\fBdumptype\fRs so must appear in\fBamanda\.conf\fRbefore any\fBdumptype\fRs are defined\..RE.PP\fBrunspercycle\fR \fI int\fR.RS 4Default:\fIsame as dumpcycle\fR\. The number of amdump runs in\fBdumpcycle\fRdays\. A value of 0 means the same value as\fBdumpcycle\fR\. A value of \-1 means guess the number of runs from the\fItapelist\fRfile, which is the number of tapes used in the last\fBdumpcycle\fRdays /\fBruntapes\fR\..RE.PP\fBtapecycle\fR \fI int\fR.RS 4Default:\fI15 tapes\fR\. Typically tapes are used by\fIAmanda\fRin an ordered rotation\. The\fBtapecycle\fRparameter defines the size of that rotation\. The number of tapes in rotation must be larger than the number of tapes required for a complete dump cycle (see the\fBdumpcycle\fRparameter)\..spThis is calculated by multiplying the number of\fBamdump\fRruns per dump cycle (\fBrunspercycle\fRparameter) times the number of tapes used per run (\fBruntapes\fRparameter)\. Typically two to four times this calculated number of tapes are in rotation\. While\fIAmanda\fRis always willing to use a new tape in its rotation, it refuses to reuse a tape until at least \'\fBtapecycle\fR\-1\' number of other tapes have been used\..spIt is considered good administrative practice to set the\fBtapecycle\fRparameter slightly lower than the actual number of tapes in rotation\. This allows the administrator to more easily cope with damaged or misplaced tapes or schedule adjustments that call for slight adjustments in the rotation order\..RE.PP\fBusetimestamps\fR \fI bool\fR.RS 4Default:\fBYes\fR\. This option allows Amanda to track multiple runs per calendar day\. The only reason one might disable it is that Amanda versions before 2\.5\.1 can\'t read logfiles written when this option was enabled\..RE.PP\fBlabel_new_tapes\fR \fI string\fR.RS 4Default: not set\. When set, this directive will cause\fIAmanda\fRto automatically write an\fIAmanda\fRtape label to any blank tape she encounters\. This option is DANGEROUS because when set,\fIAmanda\fRwill ERASE any non\-\fIAmanda\fRtapes you may have, and may also ERASE any near\-failing tapes\. Use with caution\..spWhen using this directive, specify the template for new tape labels\. The template should contain some number of contiguous \'%\' characters, which will be replaced with a generated number\. Be sure to specify enough \'%\' characters that you do not run out of tape labels\. Example:\fBlabel_new_tapes "DailySet1\-%%%"\fR.RE.PP\fBdumpuser\fR \fI string\fR.RS 4Default:\fIamanda\fR\. The login name\fIAmanda\fRuses to run the backups\. The backup client hosts must allow access from the tape server host as this user via\fB\.rhosts\fRor\fB\.amandahosts\fR, depending on how the\fIAmanda\fRsoftware was built\..RE.PP\fBprinter\fR string.RS 4Printer to use when doing tape labels\. See the\fBlbl\-templ\fR\fBtapetype\fRoption\..RE.PP\fBtapedev\fR string.RS 4Default:\fInull:\fR\. The path name of the non\-rewinding tape device\. Non\-rewinding tape device names often have an \'n\' in the name, e\.g\.\fI/dev/rmt/0mn\fR, however this is operating system specific and you should consult that documentation for detailed naming information\..spIf a tape changer is configured (see the\fBtpchanger\fRoption), this option might not be used\..spIf the\fBnull\fRoutput driver is selected (see the section OUTPUT DRIVERS in the\fBamanda\fR(8)manpage for more information), programs such as\fBamdump\fRwill run normally but all images will be thrown away\. This should only be used for debugging and testing, and probably only with the\fBrecord\fRoption set to\fIno\fR\..RE.PP\fBdevice_property\fR string string.RS 4These options can set various device properties, including block size, maximum volume usage, authentication information, hardware feature support, and more\.Specifics of how properties are used are device\-dependent, though some common properties are supported across multiple device drivers\..spBoth strings are quoted; the first string contains the name of the property to set, and the second contains its value\. For example, to set a fixed block size of 128k, do:.sp.RS 4.nfdevice_property "BLOCK_SIZE" "131072".fi.RE.spThe order in which device properties are set is as follows:.sp.RS 4\h'-04' 1.\h'+02'Tapetype parameters, including length, blocksize, readblocksize, file\-pad, are translated into device properties and set accordingly\..RE.sp.RS 4\h'-04' 2.\h'+02'Device properties from any device_property configuration directives are set, in the order they appear in the configuration file\..RE.RE.PP\fBtpchanger\fR string.RS 4Default:\fInone\fR\. The name of the tape changer\. If a tape changer is not configured, this option is not used and should be commented out of the configuration file\..spIf a tape changer is configured, choose one of the changer scripts (e\.g\.\fBchg\-scsi\fR) and enter that here\..RE.PP\fBchangerdev\fR string.RS 4Default:\fI/dev/null\fR\. A tape changer configuration parameter\. Usage depends on the particular changer defined with the\fBtpchanger\fRoption\..RE.PP\fBchangerfile\fR string.RS 4Default:\fI/usr/adm/amanda/log/changer\-status\fR\. A tape changer configuration parameter\. Usage depends on the particular changer defined with the\fBtpchanger\fRoption\..RE.PP\fBruntapes\fR int.RS 4Default:1\. The maximum number of tapes used in a single run\. If a tape changer is not configured, this option is not used and should be commented out of the configuration file\..spIf a tape changer is configured, this may be set larger than one to let\fIAmanda\fRwrite to more than one tape\..spNote that this is an upper bound on the number of tapes, and\fIAmanda\fRmay use less\..spAlso note that as of this release,\fIAmanda\fRdoes not support true tape overflow\. When it reaches the end of one tape, the backup image\fIAmanda\fRwas processing starts over again on the next tape\..RE.PP\fBmaxdumpsize\fR int.RS 4Default:\fIruntapes\fR*\fItape_length\fR\. Maximum number of bytes the planner will schedule for a run\..RE.PP\fBtaperalgo\fR [first|firstfit|largest|largestfit|smallest|last].RS 4Default:\fIfirst\fR\. The algorithm used to choose which dump image to send to the taper\..PP\fBfirst\fR.RS 4First in, first out\..RE.PP\fBfirstfit\fR.RS 4The first dump image that will fit on the current tape\..RE.PP\fBlargest\fR.RS 4The largest dump image\..RE.PP\fBlargestfit\fR.RS 4The largest dump image that will fit on the current tape\..RE.PP\fBsmallest\fR.RS 4The smallest dump image\..RE.PP\fBlast\fR.RS 4Last in, first out\..RE.RE.PP\fBlabelstr\fR \fI string\fR.RS 4Default:\fI\.*\fR\. The tape label constraint regular expression\. All tape labels generated (see\fBamlabel\fR(8)) and used by this configuration must match the regular expression\. If multiple configurations are run from the same tape server host, it is helpful to set their labels to different strings (for example, "DAILY[0\-9][0\-9]*" vs\. "ARCHIVE[0\-9][0\-9]*") to avoid overwriting each other\'s tapes\..RE.PP\fBtapetype\fR \fI string\fR.RS 4Default:\fIEXABYTE\fR\. The type of tape drive associated with\fBtapedev\fRor\fBtpchanger\fR\. This refers to one of the defined\fBtapetype\fRs in the config file (see below), which specify various tape parameters, like the\fBlength\fR,\fBfilemark\fRsize, and\fBspeed\fRof the tape media and device\..spFirst character of a\fBtapetype\fRstring must be an alphabetic character.RE.PP\fBctimeout\fR int.RS 4Default:\fI30 seconds\fR\. Maximum amount of time that\fBamcheck\fRwill wait for each client host\..RE.PP\fBdtimeout\fR int.RS 4Default:\fI1800 seconds\fR\. Amount of idle time per disk on a given client that a\fBdumper\fRrunning from within\fBamdump\fRwill wait before it fails with a data timeout error\..RE.PP\fBetimeout\fR int.RS 4Default:\fI300 seconds\fR\. Amount of time per estimate on a given client that the\fBplanner\fRstep of\fBamdump\fRwill wait to get the dump size estimates (note: Amanda runs up to 3 estimates for each DLE)\. For instance, with the default of 300 seconds and four DLE\'s, each estimating level 0 and level 1 on client A,\fBplanner\fRwill wait up to 40 minutes for that machine\. A negative value will be interpreted as a total amount of time to wait per client instead of per disk\..RE.PP\fBconnect_tries\fR int.RS 4Default:\fI3\fR\. How many times the server will try a connection\..RE.PP\fBreq_tries\fR int.RS 4Default:\fI3\fR\. How many times the server will resend a REQ packet if it doesn\'t get the ACK packet\..RE.PP\fBnetusage\fR int.RS 4Default:\fI8000 Kbps\fR\. The maximum network bandwidth allocated to\fIAmanda\fR, in Kbytes per second\. See also the\fBinterface\fRsection\..RE.PP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -