📄 afserver.conf.8.in
字号:
.br Exabyte: 70.br DLT: 70.br.TP.B Device-Unavailable-Send-Mail-After-MinIf the streaming device is not accessible (i.e. an open or atape handling command fails) or another backup server processis still running, the server process re-tries his attemptsregularly. If it fails longer than the time in minutessupplied here, an e-mail is sent to the configured user incharge (see: User To Inform). Supplying 0 means: never send mail..TP.B Device-Unavailable-Give-Up-After-MinSame as Device-Unavailable-Send-Mail-After-Min, but this timenot an e-mail is sent, but the server process exits silentlyleaving a warning in the log file. Supplying 0 means: tryforever, never exit..TP.B Device-Probe IntervalThis is the interval in seconds, after that regularly the deviceis probed to be ready for reading. Thus after having ejected acartridge it is automatically recognized, if a new cartridge hasbeen inserted. For other media (e.g. exchangeable disks) this maynot be suitable. Supply a 0 in these cases for no probing..TP.B SetFile-CommandThis is the (shell-) command to run to position the tape to acertain file. Usually this is something like a combinationof: mt -f <device> rewind and mt -f <device> fsf <number>.If the command you are supplying here starts to count with1 for the first file on tape, you should insert %n for the<number>. If it starts with 0, replace <number> with %m. Ifyou don't want to type the devicename again here, you maywrite %d instead..TP.B SkipFile-CommandThis is the (shell-) command to run to skip over to a filelater on tape. Usually this is something like mt -f <device> fsf <number>Insert %n, where the number of files to skip over must besupplied in the command, in the example instead of <number>,and %d, where the device should appear (here: <device>)..TP.B Setcart-CommandThis is the (shell-) command to run to put a certaincartridge into the device. If the command you are supplyinghere starts to count with 1 for the first cartridge, youshould insert %n in the place, where the cartridge numbermust appear. If it starts with 0, replace it with %m. Ifyou don't want to type the devicename again here, you maywrite %d instead. If you don't have a command to performthis task, don't supply anything here. In this case you mustset your cartridge handling system to sequential mode(automatically putting the next cartridge in, when thecurrent one is ejected)..TP.B Changecart-CommandThis is the (shell-) command to run to eject a cartridgecurrently placed inside the streamer device. This is normallysomething like mt -f <device> rewoffl (but better consultyour man-pages). You have to supply this either if youhave no cartridge handling system (robot) or if you have nocommand to set the cartridge directly by number. In the lattercase this package tries to maintain the number of the currentcartridge in a file and to (hopefully) keep it consistentwith the reality. In this case the cartridge handling systemmust be configured to sequential mode (automatically puttingthe next cartridge in, when the current one is ejected). Thepattern %c, if used in this command, will be replaced withnumber of the current cartridge, %n with the number of thenext one, that is expected to be put into the streamer by arobot in sequential mode. %b can be used instead of %c ifcounting of cartridges starts with 0 and not with 1. Thesame applies for %m, what means %n minus 1. %d is replacedwith the device name..TP.B Init-Media-CommandThe (shell-) command, the server runs before accessing thestorage media for the first time or after changing it. %dwill be replaced with the device. This command can be usede.g. to automatically mount a removable disk after inserting.This command might be called several times on the same media,this has to kept in mind when configuring it..TP.B Erasetape-CommandThe (shell-) command to run, if the tape must be erased.(actually not needed)..TP.B Tape-Full-CommandThe (shell-) command to run, when a tape is full. %d isreplaced with the device name, %c with the number of thecartridge, that became full, %n with the number of cycles,the cartridge has become full until now and %C with thefull path to the configuration file..TP.B User To InformIf you don't have a cartridge handling system (robot), ahuman maintainer must put the appropriate cartridge into thetape device. If you supply a mail program, an e-mail is sentto the user given here, which informs him, that and whichcartridge (by number) must be put into the tape device.If a timespan is configured, after that an automatic e-mailshould be sent due to an unaccessible tape device, it isdirected to this user (see Device-unavail-send-mail-after-min).TP.B Mail-ProgramThe mail program used to send messages to a human maintainer.This is done, whenever another cartridge must be put into thetape device and it can't be done automatically (by a robot orwhatever). If you don't want to type the username again here,you can instead write %u . The pattern %U will be replaced withthe login name of a current user on the client side, %H withthe name of the client host. If none could be figured out, theentire word containing %U or %H is deleted from the command.If you don't want mails to be sent, you may instead supply anyother command, that reads the standard input and does somethingreasonable with it, e.g. redirects it to the console: cat > /dev/console.TP.B Var-DirectoryThe directory, where varying files should be put in. Thesefiles should not be deleted. The information they contain isnecessary for the server to work properly.TP.B Tape-Pos-FileIn this file some values are stored, e.g. the number of thecartridge currently placed inside the streamer device..TP.B Logging-fileLogging information concerning errors or other notable eventsis redirected to this file. If the first word of this entryis starting with @, then logging is directed to the syslog aswell. If there are characters immediately following the @,this word is used as the syslog identifier, otherwise theidentifier is afbackup. If writing to the syslog is configured,the rest of the entry is used as additional logging file, ifpresent..TP.B Status-fileThe current status of the server is written to this file. Ifit starts with >>, then the file is created and status messageswill be appended to it. Otherwise the file is removed beforewriting. %V in the filename is replaced with the configuredVar-Directory.TP.B Lock-fileTo prevent the server program from being started several timesa lock file is created and this is it's name..TP.B Encryption-Key-FilesEntries specifying files, that contain encryption keys forauthenticating backup clients to the server. Each entryconsists of a filename, optionally followed by a colon : anda specifier for client selection. If an entry lacks a clientselector, this one will apply for all clients, that are notmatched by any other entry. The client selector is either alist of comma-separated hostnames, a filename starting witha slash / containing hostnames one per line, or a commandstarting with a bar, that is stripped off before startingthe command. The command gets the current client name asinput on stdin, aside from arguments containing patterns(see below). If the command returns an exit status of 0,the client name will match the entry. Entries are separatedby whitespace. If an entry must contain whitespace, it mustbe enclosed by double quotes. If colons are needed withinthe filenames, they must be escaped using a backslash. Eachkey file must contain at least 5 characters and must nothave read permission for group or world. The pattern %H isreplaced with the client name resolved from the IP-address.%h is similar to %H, but everything from and including thefirst dot is stripped off. For more pattern replacements see:Status-file..TP.B Program-DirectoryIf you are using the remote start option for backing upclients, this is the directory, where programs must reside,that can be started remotely. No other programs can bestarted remotely (for security reasons)..TP.B Init-CommandHere you may supply a (shell-) command to be run, when thebackup server side wakes up, i.e. the server process starts.A %p appearing in this command is replaced with the nameof the client, that connected the backup service..TP.B Exit-CommandHere you may supply a (shell-) command to be run, when thebackup server side goes to sleep, i.e. the server process ends.A %p appearing in this command is replaced with the nameof the client, that connected the backup service..SH FILES.IP @serverlibdir@/@serverconf@Server configuration file.IP @serverlogdir@The directory for logging the server actions.IP @servervardir@Some internal state information of the server..SH SEE ALSOafclientconfig(8), xafclientconfig(8), full_backup(8),incr_backup(8), afverify(8), afrestore(8), xafrestore(8),update_indexes(8), copy_tape(8), afclient.conf(8), afserver(8), afmserver(8),afserver.conf(8), cartis(8), cartready(8), label_tape(8), tar(1) .SH AUTHOR.B afbackup was written by Albert Fluegel (af@muc.de). This manpage wasextracted from the text docs by Christian Meder (meder@isr.uni-stuttgart.de).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -