AMTOC(8)
πΈ AMTOC(8) πΈ
okay bestie, gather round, because we're talking about amtoc from the System Administration Commands corner of the manual (section 8, obviously, the sysadmin girlies know π
).
β¨ NAME β¨
amtoc β generate a TOC (Table Of Contents) for an Amanda run π
π¦ SYNOPSIS π¦
amtoc [-a] [-i] [-t] [-f file] [-s subs] [-w] [--] logfile
π DESCRIPTION π
So amtoc builds you a whole table of contents for an Amanda run. Iconic behaviour, honestly. It's a perl script β and look, if you don't have perl yet, go install it first, bestie, no cap. πͺ
π OPTIONS π
-aβ your output file name is gonna belabel-of-the-tape.toc, sitting in the same directory aslogfile. Cute, self-explanatory, we love her.-iβ shows you help aboutamtoc. When in doubt, ask the girl herself π-tβ generates the output in tabular form. All lined up, all aesthetic β¨-f fileβ write the output to a file instead (and if you pass'-'it goes to stdout, classic).-s subsβ figures out the output file name by evaluatingsubs, with$_set tolabel-of-the-tape. Heads up: the-aoption is literally equivalent to-s 's/$_/.toc/'.-wβ separates tapes with form-feeds and drops some blank lines before the totals. Spacing! Drama! We respect it.--β marks the last option, so whatever comes next is thelogfile.logfileβ the log file you're feeding her (and yes, use'-'for stdin π«Ά)
π OUTPUT FORMAT π
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
And in tabular format (-t), the same energy but aligned, like so:
# 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
Look at that column discipline. Ate. π
π USAGE π
The easiest way to do this, fr fr, is to just run amtoc right after amdump in the cron job:
amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls -1t $logdir/log.*.[0-9] | head -1` ; amtoc -a $log
which will generate /usr/local/etc/amanda//daily/tape_label.toc. (yes, the double slash is in there, we don't question the ancestors π§)
You might also wanna call amtoc after an amflush. Just saying. β¨
πΈ SEE ALSO πΈ
amanda(8), amdump(8), amflush(8), amgetconf(8)
The Amanda Wiki: : http://wiki.zmanda.com/
π AUTHORS π
- Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
- University of Geneva/Switzerland π¨π
- Stefan G. Weichinger <sgw@amanda.org>
and that's the whole page, bestie β this one's from Amanda 3.5.4, dated 08/26/2026, and yeah, it really is called AMTOC(8). go forth and table-of-contents your tapes, you absolute main character ππ
π¦ where this page comes from
- ubuntu stonking: amanda-common 1:3.5.4-2.1ubuntu1 Β· Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms