Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

amtoc(8) [redhat man page]

AMTOC(8)						      System Manager's Manual							  AMTOC(8)

NAME
amtoc - generate TOC (Table Of Contents) for an Amanda run SYNOPSIS
amtoc [ -a ] [ -i ] [ -t ] [ -f file ] [ -s subs ] [ -w ] [ -- ] logfile DESCRIPTION
Amtoc generates a table of contents for an Amanda run. It's a perl script (if you don't have perl, install it first!). OPTIONS
-a The output file name will be label-of-the-tape.toc in the same directory as logfile. -i Display help about amtoc. -t Generate the output in tabular form. -f file Write the output to a file ('-' for stdout). -s subs Evaluate the output file name from subs, with $_ set to label-of-the-tape. The -a option is equivalent to -s 's/$_/.toc/'. -w Separate tapes with form-feeds and display blank lines before totals. -- Marks the last option so the next parameter is the logfile. logfile (use '-' for stdin) OUTPUT FORMAT
The standard output has five fields separated by two spaces: # Server:/partition date level size[Kb] 0 daily-05: 19991005 - - 1 cuisun15:/cuisun15/home 19991005 1 96 2 cuinfs:/export/dentiste 19991005 1 96 ... 103 cuisg11:/ 19991005 0 4139136 103 total: - - 16716288 In tabular format (-t), this would look like: # Server:/partition date lev size[Kb] 0 daily-05: 19991005 - - 1 cuisun15:/cuisun15/home 19991005 1 96 2 cuinfs:/export/dentiste 19991005 1 96 ... 103 cuisg11:/ 19991005 0 4139136 103 total: - - 16716288 USAGE
The easiest way to use it is to run amtoc right after amdump in the cron job: amdump DailySet1 ; logdir=`amgetconf DailySet1 logdir` ; log=`ls -1t $logdir/log.*.[0-9] | head -1` ; amtoc -a $log which will generate /etc/amanda/DailySet1/tape_label.toc. You may also want to call amtoc after an amflush. SEE ALSO
amanda(8), amdump(8), amflush(8), amgetconf(8), cron, perl AUTHOR
Nicolas MAYENCOURT <Nicolas.Mayencourt@cui.unige.ch> University of Geneva/Switzerland AMTOC(8)

Check Out this Related Man Page

AMREPORT(1)						      General Commands Manual						       AMREPORT(1)

NAME
amreport - generate a formatted output of statistics for an Amanda run SYNOPSIS
amreport [ config ] [ -l logfile ] [ -f outputfile ] [ -p postscriptfile ] DESCRIPTION
Amreport generates a summary report of an amanda(8) backup run. If no configuration name is specified, amanda.conf is read from the cur- rent directory. See the amanda(8) man page for more details about Amanda. OPTIONS
config Name of the configuration to process. [-l logfile] Name of the log file to parse to generate the report. If a log file is not specified, it defaults to the file: logdir/log where logdir is the log directory defined in amanda.conf. [-f outputfile] Normally, amreport sends the report via e-mail to the mailto user as defined in the amanda.conf file. If outputfile is specified, then the report is put in outputfile. [-p postscriptfile] Send the postscript output to the file postscriptfile instead of to the lpr(1) command. This option has an effect only if the lbl- templ directive is specified in amanda.conf. LABEL PRINTING
Amanda can print postscript labels describing the contents of tape(s) written in a run. The labels are designed to be folded and inserted into the tape case along with the tape or hole punched and put in a 3-ring binder. Various label templates are provided to format data for different tape sizes. The information printed varies slightly between label templates due to size constraints. Labels contain one line for each host/file-system pair and may also contain the file number on the tape, the level of the dump, the original size of the dump and the size of the (possibly compressed) tape file. Add the lbl-templ parameter to the tapetype definition in amanda.conf to enable labels. If you don't add this line to your tapetype defi- nition, amreport will not print tape labels. You may use the printer keyword in amanda.conf to print to other than the system default printer. TEMPLATES
Amanda provides label templates for the following tape types. These are pretty generic labels and should be easy to customize for other tape types or particular site needs. * ExaByte 8mm tapes * DAT 4mm tapes * DLT tapes * 3-ring binder The 3-ring binder type is the most generic. It may be used to make a hardcopy log of the tapes. SEE ALSO
amanda(8), amflush(8) AMREPORT(1)
Man Page