Re: Script for tape usage statistics

2001-08-04 Thread John R. Jackson
>... I looked at amgetconf to >find the configuration directory but could not find the right entry in >amanda.conf. This will do it: amadmin xx version \ | grep CONFIG_DIR= \ | sed -e 's/.*CONFIG_DIR="//' -e 's/".*//' I took a note to see if amgetconf could be taught to return some of

Re: Script for tape usage statistics

2001-08-03 Thread Johannes Niess
"John R. Jackson" <[EMAIL PROTECTED]> writes: [...] > >Please feel free to modify the script. May it save you from worn out > >tapes at restore time. > > A couple of thoughts. Once you know the config directory from above, > you might just cd there to avoid the duplicated names throughout the

Script for tape usage statistics

2001-08-02 Thread Johannes Niess
Hi, This little script can be used to keep track of number of tape usages. I use it with recent GNU tools on a Linux machine. Multiple skript calls per configuration and day do no harm thanks to "uniq" and file time comparison. The calling user needs write access to the config dir in /etc/amanda