1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "AMGETCONF" 8 "" "" ""
22 amgetconf - look up amanda.conf variables
25 \fBamgetconf\fR [\fIconfig\fR] \fIparameter\fR [-o \fIconfigoption\fR]*
30 looks up parameters in
31 \fBamanda.conf\fR, the
33 configuration file, or from the build and runtime environment, and returns their corresponding value.
39 assumes it is being run from the configuration directory and that
46 \fBbuild.\fR, the (case insensitive) string following the period is a build environment variable. Variables without a value (e.g.
48 on a system that does not support that type of file system) will not report an error and will return an empty string as the value. Flag variables (e.g.
49 \fBUSE_AMANDAHOSTS\fR) will return
51 if the flag is set or an empty string if it is not.
56 \fBdbopen.\fR, the string following the period is a program name and an
58 debug file will be created for the caller. The name of the file is returned.
63 \fBdbclose.\fR, the string following the period is a program name previously used with
64 \fBdbopen.\fR, followed by a colon (:) and the previously opened file name.
68 man page for more details about
72 \fB-o\fR \fIconfigoption\fR
73 See the "\fBCONFIGURATION OVERWRITE\fR" section in
77 Find out the path to the log file directory:
81 % amgetconf daily logdir
82 /usr/local/etc/amanda//daily
87 Find out the current tape type:
91 % amgetconf daily tapetype
97 Find out the default configuration directory:
101 % amgetconf daily build.CONFIG_DIR
102 /usr/local/etc/amanda/
107 Create, use and close a debug file in a script:
111 % set debug_file = `amgetconf daily dbopen.myscript`
112 % echo debug information >> $debug_file
113 % amgetconf daily dbclose.myscript:$debug_file
119 amgetconf: no such parameter \fBparam\fR
122 is not a known keyword (e.g. not a valid