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

📄 config.pm

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 PM
📖 第 1 页 / 共 4 页
字号:
was seen in the subsection.=backThe subsections are:=over=item C<tapetype>, with constants beginning with C<$TAPETYPE_>,=item C<dumptype>, with constants beginning with C<$DUMPTYPE_>,=item C<interface>, with constants beginning with C<$INTER_>, and=item C<holdingdisk>, with constants beginning with C<$HOLDING_>.=backSee C<conffile.h> for the names of the constants themselves.Parameter values are available by name from C<getconf_byname($name)>.This function implements the C<TYP:NAME:PARAM> syntax advertised byC<amgetconf> to access values in subsections.  C<getconf_list($typ)>returns a list of the names of all subsections of the given type.The C<$CNF_DISPLAYUNIT> implies a certain divisor to convert fromkilobytes to the desired unit.  This divisor is available fromC<getconf_unit_divisor()>.  Note carefully that it is a I<divisor>for a value in I<kilobytes>!Finally, various subsections of Amanda enable verbose debugging viaconfiguration parameters.  The status of each parameter is availablea similarly-named variable, e.g., C<$debug_auth>.All parameter access functions and constants can be imported withthe tag C<:getconf>.=head1 MISCELLANEOUSThese functions defy categorization.The function C<config_dir_relative> will interpret a path relative tothe current configuration directory.  Absolute paths are passed throughunchanged, while relative paths are converted to absolute paths.C<dump_configuration()> dumps the current configuration, in a formatsuitable for re-evaluation for this module, to standard output.This function may be revised to return a string.Several parts of Amanda need to convert unit modifier value like"gbytes" to a multiplier.  The function C<find_multiplier($str)>returns the unit multiplier for such a string.  For example, "mbytes"is converted to 1048576 (1024*1024).=cutpush @EXPORT_OK, qw(confparm_key_to_string);push @{$EXPORT_TAGS{"confparm_key"}}, qw(confparm_key_to_string);my %_confparm_key_VALUES;#Convert an enum value to a single stringsub confparm_key_to_string {    my ($enumval) = @_;    for my $k (keys %_confparm_key_VALUES) {	my $v = $_confparm_key_VALUES{$k};	#is this a matching flag?	if ($enumval == $v) {	    return $k;	}    }#default, just return the number    return $enumval;}push @EXPORT_OK, qw($CNF_ORG);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_ORG);$_confparm_key_VALUES{"CNF_ORG"} = $CNF_ORG;push @EXPORT_OK, qw($CNF_CONF);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_CONF);$_confparm_key_VALUES{"CNF_CONF"} = $CNF_CONF;push @EXPORT_OK, qw($CNF_INDEX_SERVER);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_INDEX_SERVER);$_confparm_key_VALUES{"CNF_INDEX_SERVER"} = $CNF_INDEX_SERVER;push @EXPORT_OK, qw($CNF_TAPE_SERVER);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TAPE_SERVER);$_confparm_key_VALUES{"CNF_TAPE_SERVER"} = $CNF_TAPE_SERVER;push @EXPORT_OK, qw($CNF_AUTH);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_AUTH);$_confparm_key_VALUES{"CNF_AUTH"} = $CNF_AUTH;push @EXPORT_OK, qw($CNF_SSH_KEYS);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_SSH_KEYS);$_confparm_key_VALUES{"CNF_SSH_KEYS"} = $CNF_SSH_KEYS;push @EXPORT_OK, qw($CNF_AMANDAD_PATH);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_AMANDAD_PATH);$_confparm_key_VALUES{"CNF_AMANDAD_PATH"} = $CNF_AMANDAD_PATH;push @EXPORT_OK, qw($CNF_CLIENT_USERNAME);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_CLIENT_USERNAME);$_confparm_key_VALUES{"CNF_CLIENT_USERNAME"} = $CNF_CLIENT_USERNAME;push @EXPORT_OK, qw($CNF_GNUTAR_LIST_DIR);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_GNUTAR_LIST_DIR);$_confparm_key_VALUES{"CNF_GNUTAR_LIST_DIR"} = $CNF_GNUTAR_LIST_DIR;push @EXPORT_OK, qw($CNF_AMANDATES);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_AMANDATES);$_confparm_key_VALUES{"CNF_AMANDATES"} = $CNF_AMANDATES;push @EXPORT_OK, qw($CNF_MAILTO);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_MAILTO);$_confparm_key_VALUES{"CNF_MAILTO"} = $CNF_MAILTO;push @EXPORT_OK, qw($CNF_DUMPUSER);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DUMPUSER);$_confparm_key_VALUES{"CNF_DUMPUSER"} = $CNF_DUMPUSER;push @EXPORT_OK, qw($CNF_TAPEDEV);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TAPEDEV);$_confparm_key_VALUES{"CNF_TAPEDEV"} = $CNF_TAPEDEV;push @EXPORT_OK, qw($CNF_DEVICE_PROPERTY);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEVICE_PROPERTY);$_confparm_key_VALUES{"CNF_DEVICE_PROPERTY"} = $CNF_DEVICE_PROPERTY;push @EXPORT_OK, qw($CNF_CHANGERDEV);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_CHANGERDEV);$_confparm_key_VALUES{"CNF_CHANGERDEV"} = $CNF_CHANGERDEV;push @EXPORT_OK, qw($CNF_CHANGERFILE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_CHANGERFILE);$_confparm_key_VALUES{"CNF_CHANGERFILE"} = $CNF_CHANGERFILE;push @EXPORT_OK, qw($CNF_LABELSTR);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_LABELSTR);$_confparm_key_VALUES{"CNF_LABELSTR"} = $CNF_LABELSTR;push @EXPORT_OK, qw($CNF_TAPELIST);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TAPELIST);$_confparm_key_VALUES{"CNF_TAPELIST"} = $CNF_TAPELIST;push @EXPORT_OK, qw($CNF_DISKFILE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DISKFILE);$_confparm_key_VALUES{"CNF_DISKFILE"} = $CNF_DISKFILE;push @EXPORT_OK, qw($CNF_INFOFILE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_INFOFILE);$_confparm_key_VALUES{"CNF_INFOFILE"} = $CNF_INFOFILE;push @EXPORT_OK, qw($CNF_LOGDIR);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_LOGDIR);$_confparm_key_VALUES{"CNF_LOGDIR"} = $CNF_LOGDIR;push @EXPORT_OK, qw($CNF_INDEXDIR);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_INDEXDIR);$_confparm_key_VALUES{"CNF_INDEXDIR"} = $CNF_INDEXDIR;push @EXPORT_OK, qw($CNF_TAPETYPE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TAPETYPE);$_confparm_key_VALUES{"CNF_TAPETYPE"} = $CNF_TAPETYPE;push @EXPORT_OK, qw($CNF_DUMPCYCLE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DUMPCYCLE);$_confparm_key_VALUES{"CNF_DUMPCYCLE"} = $CNF_DUMPCYCLE;push @EXPORT_OK, qw($CNF_RUNSPERCYCLE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_RUNSPERCYCLE);$_confparm_key_VALUES{"CNF_RUNSPERCYCLE"} = $CNF_RUNSPERCYCLE;push @EXPORT_OK, qw($CNF_TAPECYCLE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TAPECYCLE);$_confparm_key_VALUES{"CNF_TAPECYCLE"} = $CNF_TAPECYCLE;push @EXPORT_OK, qw($CNF_NETUSAGE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_NETUSAGE);$_confparm_key_VALUES{"CNF_NETUSAGE"} = $CNF_NETUSAGE;push @EXPORT_OK, qw($CNF_INPARALLEL);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_INPARALLEL);$_confparm_key_VALUES{"CNF_INPARALLEL"} = $CNF_INPARALLEL;push @EXPORT_OK, qw($CNF_DUMPORDER);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DUMPORDER);$_confparm_key_VALUES{"CNF_DUMPORDER"} = $CNF_DUMPORDER;push @EXPORT_OK, qw($CNF_BUMPPERCENT);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_BUMPPERCENT);$_confparm_key_VALUES{"CNF_BUMPPERCENT"} = $CNF_BUMPPERCENT;push @EXPORT_OK, qw($CNF_BUMPSIZE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_BUMPSIZE);$_confparm_key_VALUES{"CNF_BUMPSIZE"} = $CNF_BUMPSIZE;push @EXPORT_OK, qw($CNF_BUMPMULT);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_BUMPMULT);$_confparm_key_VALUES{"CNF_BUMPMULT"} = $CNF_BUMPMULT;push @EXPORT_OK, qw($CNF_BUMPDAYS);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_BUMPDAYS);$_confparm_key_VALUES{"CNF_BUMPDAYS"} = $CNF_BUMPDAYS;push @EXPORT_OK, qw($CNF_TPCHANGER);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TPCHANGER);$_confparm_key_VALUES{"CNF_TPCHANGER"} = $CNF_TPCHANGER;push @EXPORT_OK, qw($CNF_RUNTAPES);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_RUNTAPES);$_confparm_key_VALUES{"CNF_RUNTAPES"} = $CNF_RUNTAPES;push @EXPORT_OK, qw($CNF_MAXDUMPS);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_MAXDUMPS);$_confparm_key_VALUES{"CNF_MAXDUMPS"} = $CNF_MAXDUMPS;push @EXPORT_OK, qw($CNF_ETIMEOUT);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_ETIMEOUT);$_confparm_key_VALUES{"CNF_ETIMEOUT"} = $CNF_ETIMEOUT;push @EXPORT_OK, qw($CNF_DTIMEOUT);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DTIMEOUT);$_confparm_key_VALUES{"CNF_DTIMEOUT"} = $CNF_DTIMEOUT;push @EXPORT_OK, qw($CNF_CTIMEOUT);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_CTIMEOUT);$_confparm_key_VALUES{"CNF_CTIMEOUT"} = $CNF_CTIMEOUT;push @EXPORT_OK, qw($CNF_TAPEBUFS);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TAPEBUFS);$_confparm_key_VALUES{"CNF_TAPEBUFS"} = $CNF_TAPEBUFS;push @EXPORT_OK, qw($CNF_DEVICE_OUTPUT_BUFFER_SIZE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEVICE_OUTPUT_BUFFER_SIZE);$_confparm_key_VALUES{"CNF_DEVICE_OUTPUT_BUFFER_SIZE"} = $CNF_DEVICE_OUTPUT_BUFFER_SIZE;push @EXPORT_OK, qw($CNF_PRINTER);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_PRINTER);$_confparm_key_VALUES{"CNF_PRINTER"} = $CNF_PRINTER;push @EXPORT_OK, qw($CNF_AUTOFLUSH);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_AUTOFLUSH);$_confparm_key_VALUES{"CNF_AUTOFLUSH"} = $CNF_AUTOFLUSH;push @EXPORT_OK, qw($CNF_RESERVE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_RESERVE);$_confparm_key_VALUES{"CNF_RESERVE"} = $CNF_RESERVE;push @EXPORT_OK, qw($CNF_MAXDUMPSIZE);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_MAXDUMPSIZE);$_confparm_key_VALUES{"CNF_MAXDUMPSIZE"} = $CNF_MAXDUMPSIZE;push @EXPORT_OK, qw($CNF_COLUMNSPEC);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_COLUMNSPEC);$_confparm_key_VALUES{"CNF_COLUMNSPEC"} = $CNF_COLUMNSPEC;push @EXPORT_OK, qw($CNF_AMRECOVER_DO_FSF);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_AMRECOVER_DO_FSF);$_confparm_key_VALUES{"CNF_AMRECOVER_DO_FSF"} = $CNF_AMRECOVER_DO_FSF;push @EXPORT_OK, qw($CNF_AMRECOVER_CHECK_LABEL);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_AMRECOVER_CHECK_LABEL);$_confparm_key_VALUES{"CNF_AMRECOVER_CHECK_LABEL"} = $CNF_AMRECOVER_CHECK_LABEL;push @EXPORT_OK, qw($CNF_AMRECOVER_CHANGER);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_AMRECOVER_CHANGER);$_confparm_key_VALUES{"CNF_AMRECOVER_CHANGER"} = $CNF_AMRECOVER_CHANGER;push @EXPORT_OK, qw($CNF_TAPERALGO);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TAPERALGO);$_confparm_key_VALUES{"CNF_TAPERALGO"} = $CNF_TAPERALGO;push @EXPORT_OK, qw($CNF_FLUSH_THRESHOLD_DUMPED);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_FLUSH_THRESHOLD_DUMPED);$_confparm_key_VALUES{"CNF_FLUSH_THRESHOLD_DUMPED"} = $CNF_FLUSH_THRESHOLD_DUMPED;push @EXPORT_OK, qw($CNF_FLUSH_THRESHOLD_SCHEDULED);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_FLUSH_THRESHOLD_SCHEDULED);$_confparm_key_VALUES{"CNF_FLUSH_THRESHOLD_SCHEDULED"} = $CNF_FLUSH_THRESHOLD_SCHEDULED;push @EXPORT_OK, qw($CNF_TAPERFLUSH);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_TAPERFLUSH);$_confparm_key_VALUES{"CNF_TAPERFLUSH"} = $CNF_TAPERFLUSH;push @EXPORT_OK, qw($CNF_DISPLAYUNIT);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DISPLAYUNIT);$_confparm_key_VALUES{"CNF_DISPLAYUNIT"} = $CNF_DISPLAYUNIT;push @EXPORT_OK, qw($CNF_KRB5KEYTAB);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_KRB5KEYTAB);$_confparm_key_VALUES{"CNF_KRB5KEYTAB"} = $CNF_KRB5KEYTAB;push @EXPORT_OK, qw($CNF_KRB5PRINCIPAL);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_KRB5PRINCIPAL);$_confparm_key_VALUES{"CNF_KRB5PRINCIPAL"} = $CNF_KRB5PRINCIPAL;push @EXPORT_OK, qw($CNF_LABEL_NEW_TAPES);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_LABEL_NEW_TAPES);$_confparm_key_VALUES{"CNF_LABEL_NEW_TAPES"} = $CNF_LABEL_NEW_TAPES;push @EXPORT_OK, qw($CNF_USETIMESTAMPS);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_USETIMESTAMPS);$_confparm_key_VALUES{"CNF_USETIMESTAMPS"} = $CNF_USETIMESTAMPS;push @EXPORT_OK, qw($CNF_REP_TRIES);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_REP_TRIES);$_confparm_key_VALUES{"CNF_REP_TRIES"} = $CNF_REP_TRIES;push @EXPORT_OK, qw($CNF_CONNECT_TRIES);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_CONNECT_TRIES);$_confparm_key_VALUES{"CNF_CONNECT_TRIES"} = $CNF_CONNECT_TRIES;push @EXPORT_OK, qw($CNF_REQ_TRIES);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_REQ_TRIES);$_confparm_key_VALUES{"CNF_REQ_TRIES"} = $CNF_REQ_TRIES;push @EXPORT_OK, qw($CNF_DEBUG_AMANDAD);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEBUG_AMANDAD);$_confparm_key_VALUES{"CNF_DEBUG_AMANDAD"} = $CNF_DEBUG_AMANDAD;push @EXPORT_OK, qw($CNF_DEBUG_AMIDXTAPED);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEBUG_AMIDXTAPED);$_confparm_key_VALUES{"CNF_DEBUG_AMIDXTAPED"} = $CNF_DEBUG_AMIDXTAPED;push @EXPORT_OK, qw($CNF_DEBUG_AMINDEXD);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEBUG_AMINDEXD);$_confparm_key_VALUES{"CNF_DEBUG_AMINDEXD"} = $CNF_DEBUG_AMINDEXD;push @EXPORT_OK, qw($CNF_DEBUG_AMRECOVER);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEBUG_AMRECOVER);$_confparm_key_VALUES{"CNF_DEBUG_AMRECOVER"} = $CNF_DEBUG_AMRECOVER;push @EXPORT_OK, qw($CNF_DEBUG_AUTH);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEBUG_AUTH);$_confparm_key_VALUES{"CNF_DEBUG_AUTH"} = $CNF_DEBUG_AUTH;push @EXPORT_OK, qw($CNF_DEBUG_EVENT);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEBUG_EVENT);$_confparm_key_VALUES{"CNF_DEBUG_EVENT"} = $CNF_DEBUG_EVENT;push @EXPORT_OK, qw($CNF_DEBUG_HOLDING);push @{$EXPORT_TAGS{"confparm_key"}}, qw($CNF_DEBUG_HOLDING);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -