⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serverconfig.in

📁 一套客户/服务器模式的备份系统代码,跨平台,支持linux,AIX, IRIX, FreeBSD, Digital Unix (OSF1), Solaris and HP-UX.
💻 IN
📖 第 1 页 / 共 3 页
字号:
helps__25=`TN_ "The (shell-) command to run, when a tape is full. %d is replaced with the device name, %c with the number of the cartridge, that became full, %n with the number of cycles, the cartridge has become full until now and %C with the full path to the configuration file. For more pattern replacements see Changer-Configuration-File (18)."`helps__26=`TN_ "If you don't have a cartridge handling system (robot), a human maintainer must put the appropriate cartridge into the tape device. If you supply a mail program, an e-mail is sent to the user given here, which informs him, that and which cartridge (by number) must be put into the tape device. If a timespan is configured, after that an automatic e-mail should be sent due to an unaccessible tape device, it is directed to this user."`helps__27=`TN_ "The mail program used to send messages to a human maintainer. This is done, whenever another cartridge must be put into the tape device and it can't be done automatically (by a robot or whatever). If you don't want to type the username again here, you can instead write %u . The pattern %U will be replaced with the login name of a current user on the client side, %H with the name of the client host. If none could be figured out, the entire word containing %U or %H is deleted from the command. For more pattern replacements see Changer-Configuration-File (18). If you don't want mails to be sent, you may instead supply any other command, that reads the standard input and does something reasonable with it, e.g. redirects it to the console:  cat > /dev/console"`helps__28=`TN_ "The directory, where varying files should be put in. These files should not be deleted. The information they contain is necessary for the server to work properly."`helps__29=`TN_ "In this file some values are stored, e.g. the number of the cartridge currently placed inside the streamer device. For pattern replacements see Changer-Configuration-File (18)."`helps__30=`TN_ "Logging information concerning errors or other notable events is redirected to this file. If the first word of this entry is starting with @, then logging is directed to the syslog as well. If there are characters immediately following the @, this word is used as the syslog identifier, otherwise the identifier is afbackup. If writing to the syslog is configured, the rest of the entry is used as additional logging file, if present. For pattern replacements see Changer-Configuration-File (18)."`helps__31=`TN_ "The current status of the server is written to this file. If it starts with >>, then the file is created and status messages will be appended to it. Otherwise the file is removed before writing. For pattern replacements see Changer-Configuration-File (18)."`helps__32=`TN_ "To prevent the server program from being started several times a lock file is created and this is it's name. For pattern replacements see Changer-Configuration-File (18)."`helps__33=`TN_ "The name of a file, that a lock is set on, when a media changer is accessed. This is to prevent concurrent access, what might result in inconsistencies in the cartridge database. For pattern replacements see Changer-Configuration-File (18)."`helps__34=`TN_ "Entries specifying files, that contain encryption keys for authenticating backup clients to the server. Each entry consists of a filename, optionally followed by a colon : and a specifier for client selection. If an entry lacks a client selector, this one will apply for all clients, that are not matched by any other entry. The client selector is either a list of comma-separated hostnames, a filename starting with a slash / containing hostnames one per line, or a command starting with a bar, that is stripped off before starting the command. The command gets the current client name as input 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 separated by whitespace. If an entry must contain whitespace, it must be enclosed by double quotes. If colons are needed within the filenames, they must be escaped using a backslash. Each key file must contain at least 5 characters and must not have read permission for group or world. The pattern %H is replaced with the client name resolved from the IP-address. %h is similar to %H, but everything from and including the first dot is stripped off. For more pattern replacements see Changer-Configuration-File (18)."`helps__35=`TN_ "If you are using the remote start option for backing up clients, this is the directory, where programs must reside, that can be started remotely. No other programs can be started remotely (for security reasons). For pattern replacements see Changer-Configuration-File (18)."`helps__36=`TN_ "Here you may supply a (shell-) command to be run, when the backup server side wakes up, i.e. the server process starts. A %p appearing in this command is replaced with the name of the client, that connected the backup service. For more pattern replacements see Changer-Configuration-File (18)."`helps__37=`TN_ "Here you may supply a (shell-) command to be run, when the backup server side goes to sleep, i.e. the server process ends. A %p appearing in this command is replaced with the name of the client, that connected the backup service. For more pattern replacements see Changer-Configuration-File (18)."`## 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 .fi## SHIT SHIT SHIT SHIT SHIT SHIT SHIT SHIT SHIT SHIT SHIT SHIT SHIT SHIT#if [ `echo $values__7 | wc -w` -eq 0 ] ; then  values__7=`$AWK '{if($0 ~ "^[ 	]*[Ll]ast[-_ 	]*[Cc]artr?i?d?g?e?s[-_ 	]*:?") {sub("^[^0-9]*",""); for(i=1;i<=NF;i++){idx=1;for(j=1;j<=NF;j++){if($j<$i && idx<$j+1) idx=$j+1;} printf " %d-%d",idx,$i;} printf "\n";}}' $configfile`fi## END OF SHIT END OF SHIT END OF SHIT END OF SHIT END OF SHIT END OF SHIT#echo ' '`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 + -