📄 clientconfig.in
字号:
helps__13=`TN_ "These patterns or filenames specify files, that no processing is attempted on. Normally this is done for all files. This might be unefficient, e.g. compressing files, that are already compressed, so their compression can be suppressed with this parameter. The value of this parameter must be a list separated by whitespace. Double quotes may enclose list elements."`helps__14=`TN_ "This number determines how many log files of previous full backups are saved. These files may serve for the restore of older files than those present in the current backup. Of course there must be sufficient space to hold all the backups. It doesn't help to save all the saved filenames but not to have them available on tape."`helps__15=`TN_ "Instead of the number of index files to be kept (previous parameter), their maximum age can be configured in days (floating point number allowed). Older index files will be automatically removed. If this parameter is configured and the previous one at the same time, the longer duration will be applied to avoid accidental removal of indexes on configuration errors."`helps__16=`TN_ "This is the maximum number of index files, that will be scanned during restore. This can be helpful, if it takes too much time to scan through all index files, what is done, if restrictions are given, such as before time, after time or certain tapes. This parameter can be overridden by option -N of afrestore."`helps__17=`TN_ "Instead of configuring the maximum number of index files to be scanned (previous parameter), their maximum age in days can be configured (floating point number allowed). This parameter can be overridden by option -O of afrestore."`helps__18=`TN_ "When this flag is set, during restore started by a normal user (not the superuser) it is checked, whether the user has sufficient access permissions in the directory, where the files are recovered. When relocating using option -C this is default behaviour. With this flag set it will be enforced also when not relocating. This has pros and cons. It might be desirable, that users can also restore their own files in directories owned by root (e.g. at-job files or the CDE calendar stuff). On the other side this might be considered a security problem."`helps__19=`TN_ "The name of a file error messages or other notable events are written to. A dash - stands for no logging. The pattern %V will be replaced with the full path to the var-directory, %B with the bin directory, %L with the lib directory, %C with the configuration directory and %I with the logging directory (usually == %V)"`helps__20=`TN_ "The directory, where varying files should be put in. These files must not be deleted. The information they contain is necessary for restore."`helps__21=`TN_ "The identifier for the client. Default: The official hostname. This entry is required, it several afbackup clients reside on one host. In this case the multi stream server must be able to distinguish the clients to distribute the pieces of backup data on tape correctly. Otherwise the data would be mixed up and be unusable by the reading client."`helps__22=`TN_ "To prevent client programs from being started several times a lock file is created and this is it's name. For pattern replacements see LoggingFile (19)."`helps__23=`TN_ "The file containing the encryption key for authenticating the backup client to the server. This file must contain at least 5 characters and must not have read permission for group or world. For pattern replacements see LoggingFile (19)."`helps__24=`TN_ "This is the (shell-) command to run to save the startup information of an incremental or full backup, sometimes called bootstrap information. This program should read the standard input and do something reasonable with it, e.g. append it to some file. The produced information can be used to recover from a hard crash, when the files are lost, that are containing the names of the saved files. Therefore this information should not be saved locally on the client host, but e.g. on an NFS-mounted filesystem, a floppy disc or in a mail-file (then this command should be sth. like: mail someuser). For pattern replacements see LoggingFile (19)"`helps__25=`TN_ "A (shell-) command to be run before a backup is attempted. If this program returns an exit status unequal to 0, no backup is performed. This parameter makes only sense when backup is started remotely, cause in that case no shell-command can be supplied. If backup is started locally, there is no problem to run whatever is necessery before the backup explicitly. For pattern replacements see LoggingFile (19)"`helps__26=`TN_ "This parameter may specify a (shell-) command to run at exit time of a full or incremental backup. The following patterns are replaced as explained:\n %l by the name of the file containing the filelists\n %r by the name of the file containing statistics (this\n file is automatically removed after execution of this\n program)\n %e by the overall exit status\n %i with the minimum restore information.\nFor more pattern replacements see LoggingFile (19)"`helps__27=`TN_ "This is the directory, the backup client changes to before packing the files and directories. Their names should be supplied relative to this directory, e.g. ./home ."`helps__28=`TN_ "These are the names of files, that should not be saved. Wildcards in the usual manner are allowed (shell-style or glob-style, furthermore path-patterns in the style of GNU's find program with option -path. Note, that wildcards also match directory separators i.e. slashes, e.g. a*d matches ab/cd). E.g. it does not usually make much sense to back up object files, as they can be easily reproduced from existing program sources."`helps__29=`TN_ "These are the names of directories, that should not be saved. Wildcards in the usual manner are allowed (shell-style or glob-style, furthermore path-patterns in the style of GNU's find program with option -path. Note, that wildcards also match directory separators i.e. slashes, e.g. a*d matches ab/cd). E.g. it does not usually make much sense to back up the lost+found directory or such only containing object files, as they can be easily reproduced from existing program sources."`helps__30=`TN_ "A file with the name supplied here can be present in any directory. It should contain a list of file-/directory-names (or glob-style patterns), that should be skipped during backup. Each entry must be in an own line. The given names/patterns are valid only in the same directory, where the file resides. Thus each directory can have it's individual exclusion list."`helps__31=`TN_ "A list of filesystem types, separated by whitespace and/or commas. The type names can be prefixed with a plus, what is identical with no prefix, with a dash - or a slash / . No prefix or a plus means, that only files in filesystems of the given type are saved, no others. A dash (e.g. -autofs ) means, files in a filesystem of the named type are not saved, nonetheless such filesystems are traversed to search for filesystems of other types probably mounted underneath. The slash means, that such filesystems are not even entered or traversed"`helps__32=`TN_ "This flag specifies, whether CRC32 checksums are written to the backup or not. Checksumming costs performance but might be desired to achieve additional safety, that the recovered files are intact"`helps__33=`TN_ "When this flag is set, not only a filesystem entry's modification time (mtime) is evaluated when selecting objects to store during incremental or a level X backup, but also the inode change time (ctime). In this mode a filesystem entry's access time (atime) is not restored to the value it had before saving it, because that would again change the ctime, thus each incremental backup would result in a full backup"`helps__34=`TN_ "If you have to backup a large amount of files and the full backup can't be done during one run (e.g. over a weekend), you can divide the full backup into pieces. This number determines, how many pieces you need. If this number is not equal to 1, you have to supply which files and directories you want to save in which piece. You do so by setting the additional parameters appearing when you set this parameter greater than 1."`helps__35=`TN_ "These are the names of files and diretories, that should be saved. Wildcards in the usual manner are allowed (shell- style or glob-style). They should be supplied relative to the working directory, the client changes to when starting. Descending into directories can be limited to the current filesystem by preceding the filename with the four characters .//. or the option -m (and a space). The prefix .//. is stripped off the name before saving. Supplying a filename preceded with the four characters /../ (what makes no sense normally) or the option -r (and a space) forces the file contents to be saved regardless of the file type. This way raw partitions or similar things can be saved. The prefix /../ is stripped off the name before saving. These file contents are by default never processed for safety reasons. If you want to force processing nonetheless, use //../ as prefix or precede the name with the option -R (and a space). To save the output of a command, supply (in double quotes) a triple bar |||, followed by a space and the command. Another triple bar must follow, after that another command doing the opposite of the first one. This command gets the data written by the first one as input at restore time. A triple sharp ### and a comment may follow.\nA command can be supplied here, whose output is read and used as if it were written here literally. If this is desired, the entry must start with a bar |, followed by a mandatory space and the shell-command to execute. If the pattern %T appears in this command, it is replaced with a specifier for the type of backup: F, if it's a full backup; F<N>, if the full backup is split into several parts with <N> being the part number, e.g. F2; I, if it's an incremental backup; L<N> for a level <N> backup e.g. L5"`helps__36=`TN_ "These are the names of files and diretories, that should be saved as part #num#. Wildcards in the usual manner are allowed (shell-style or glob-style). They should be supplied relative to the working directory the client changes to when starting. Descending into directories can be limited to the current filesystem by preceding the filename with the four characters .//. or the option -m (and a space). The prefix .//. is stripped off the name before saving. Supplying a filename preceded with the four characters /../ (what makes no sense normally) forces the file contents to be saved regardless of the file type. This way raw partitions or similar things can be saved. The prefix /../ is stripped off the name before saving. These file contents are by default never processed for safety reasons. If you want to force processing nonetheless, use //../ as prefix or precede the name with the option -R (and a space). To save the output of a command, supply (in double quotes) a triple bar |||, followed by a space and the command. Another triple bar must follow, after that another command doing the opposite of the first one. This command gets the data written by the first one as input at restore time. A triple sharp ### and a comment may follow.\nA command can be supplied here, whose output is read and used as if it were written here literally. If this is desired, the entry must start with a bar |, followed by a mandatory space and the shell-command to execute. If the pattern %T appears in this command, it is replaced with a specifier for the type of backup: F, if it's a full backup; F<N>, if the full backup is split into several parts with <N> being the part number, e.g. F2; I, if it's an incremental backup; L<N> for a level <N> backup e.g. L5"`## end configurable part#var_param_idx=`expr $num_fix_params + 2`echo_n `T_ "Reading current settings"`' 'i=1while [ $i -le $num_fix_params ] ; do eval pattern='"$'patterns__$i'"' parvalue=`getparam "$pattern"` eval values__"$i"='"$'parvalue'"' echo_n . i=`expr $i + 1`doneset_var_paramsif [ $num_var_params -gt 1 ] ; then j=1 while [ $j -le $num_var_params ] ; do eval parname='"$'patterns__$var_param_idx'"' parname=`echo "$parname"|sed 's/#num#/'$j/g` parvalue=`getparam "$parname"` eval values__"$i"='"$'parvalue'"' j=`expr $j + 1` i=`expr $i + 1` echo_n . doneelse eval parname='"$'patterns__$first_var_param'"' parvalue=`getparam "$parname"` eval values__"$first_var_param"='"$'parvalue'"' echo_n .fiecho ' '`T_ "done"`while true ; do set_var_params clear trap cleantmp 2 trap cleantmp 15 trap cleantmp 1 i=1 ( echo ' ' while [ $i -le $num_fix_params ] ; do eval text='"$'prompts__$i'"' eval value='"$'values__$i'"' text=`T_ ''"$text"` text=`spcext "$text" $promptlen` head=`spcext " [$i]" 6` echo "$head ""$text"" $value" i=`expr $i + 1` done j=1 if [ $num_var_params -gt 1 ] ; then while [ $i -le $num_total_params ] ; do eval text='"$'prompts__$var_param_idx'"' text=`T_ ''"$text" | sed 's/#num#/'$j/g` text=`spcext "$text" $promptlen` eval value='"$'values__$i'"' head=`spcext " [$i]" 6` echo "$head ""$text"" $value" j=`expr $j + 1` i=`expr $i + 1` done else if [ $num_var_params -gt 0 ] ; then eval text='"$'prompts__$first_var_param'"' text=`T_ ''"$text"` text=`spcext "$text" $promptlen` eval value='"$'values__$first_var_param'"' head=`spcext " [$first_var_param]" 6` echo "$head ""$text"" $value" fi fi echo ' ' T_ "Please enter the number of the parameter you would like to modify. Then, if you want to clear the entry, hit the Space- and the Return-key. To get help enter: help, and the number of the parameter you need help on. To exit and write out the changes enter: ok. To exit without making any changes, enter: exit." | fmt_output | awk '{printf " %s\n",$0}' ) 2>/dev/null | $PAGER c=blub while [ `matches "$c" '^([1-9][0-9]*|help *[1-9][0-9]*|exit|quit|ok)$'` -eq 0 ] ; do echo " " echo_n `T_ "Your choice:"`' ' read c if [ `matches "$c" '^([1-9][0-9]*|help *[1-9][0-9]*|exit|quit|ok)$'` -eq 0 ] ; then echo " " echo `T_ "Invalid choice. Please try again."` continue fi if [ `matches "$c" '^[1-9][0-9]*$'` -gt 0 ] ; then if [ $c -gt $num_total_params -o $c -lt 1 ] ; then echo " " echo `T_ "Invalid choice. Please try again."` c=blub else break fi fi done if [ `matches "$c" '^[1-9]'` -gt 0 ] ; then echo ' ' if [ $c -gt $num_fix_params ] ; then i=`expr $c - $num_fix_params` if [ $num_var_params -gt 1 ] ; then eval text='"$'prompts__$var_param_idx'"' text=`T_ ''"$text"|sed 's/#num#/'"$i"'/g'` else eval text='"$'prompts__$first_var_param'"' text=`T_ ''"$text"` fi else eval text='"$'prompts__$c'"' text=`T_ ''"$text"` fi eval value='"$'values__$c'"' echo `echo $text | repl_backsl_seq`" $value" echo_n `T_ "Please enter new value:"`' ' i=`awk '{print ; exit}'` if [ _"$i" != _ ] ; then eval values__"$c"='"'"$i"'"' fi continue fi if [ `matches "$c" quit` -gt 0 -o `matches "$c" exit` -gt 0 ] ; then exit 0 fi if [ `matches "$c" ok` -gt 0 ] ; then /bin/rm -f $configfile touch $configfile i=1 while [ $i -le $num_total_params ] ; do eval value='"$'values__$i'"' eval comment='"$'comments__$i'"' eval name='"$'names__$i'"' comment=`echo "$comment" | repl_backsl_seq` if [ $i -le $num_fix_params ] ; then T_ ''"$comment" | awk '{printf "# %s\n",$0}' >> $configfile if [ `echo "$value"|wc -w` -eq 0 ] ; then echo "#$name":" $value" >> $configfile else echo "$name":" $value" >> $configfile fi else j=`expr $i - $num_fix_params` if [ $num_var_params -gt 1 ] ; then eval comment='"$'comments__$var_param_idx'"' eval name='"$'names__$var_param_idx'"' comment=`echo "$comment" | repl_backsl_seq` T_ ''"$comment" | sed 's/#num#/'$j/g | awk '{printf "# %s\n",$0}' >> $configfile if [ `echo "$value"|wc -w` -eq 0 ] ; then echo "#$name":" $value" | \ sed 's/#num#/'"$j"'/g' >> $configfile else echo "$name":" $value" | \ sed 's/#num#/'"$j"'/g' >> $configfile fi else eval comment='"$'comments__$first_var_param'"' eval name='"$'names__$first_var_param'"' comment=`echo "$comment" | repl_backsl_seq` T_ ''"$comment" | awk '{printf "# %s\n",$0}' >> $configfile if [ `echo "$values[$i]"|wc -w` -eq 0 ] ; then echo "#$name":" $value" | \ sed 's/#num#/'"$j"'/g' >> $configfile else echo "$name":" $value" | \ sed 's/#num#/'"$j"'/g' >> $configfile fi fi fi i=`expr $i + 1` done exit 0 fi if [ `matches "$c" help` -gt 0 ] ; then num=`echo "$c"|cut -c5-|awk '{print $1}'` if [ $num -le $num_fix_params ] ; then eval help='"$'helps__$num'"' help=`echo "$help" | repl_backsl_seq` T_ ''"$help" | fmt_output | awk '{printf " %s\n",$0}' | $PAGER else if [ $num_var_params -gt 1 ] ; then j=`expr $num - $num_fix_params` eval help='"$'helps__$var_param_idx'"' help=`echo "$help" | repl_backsl_seq` T_ ''"$help" | sed 's/#num#/'$j/g | fmt_output | awk '{printf " %s\n",$0}' | $PAGER else eval help='"$'helps__$first_var_param'"' help=`echo "$help" | repl_backsl_seq` T_ ''"$help" | sed 's/#num#/'"$c"'/g' | fmt_output | awk '{printf " %s\n",$0}' | $PAGER fi fi echo " " echo `T_ "Hit Return, when done."` read d fi done
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -