Hi, Gerrit A. Smit -TI- schrieb:
I would like a way to tell amrecover that those tapes are off site without too much fiddling around with setdate.
After your amdump you still can run amstatus. There you see the tapes amanda used. This you can use for and automatic setting to no-reuse.
Save the script below and make it executable for amanda. When you start your weekly backup, start amdump like
amdump {SetName} ; Set-Tapes-To-no-reuse.sh ----- Set-Tapes-To-no-reuse.sh ------------------------------------------ #!/bin/bash # Setname (configure this for your need or $1 for a parameter you start # the script with) SET="KMS" # Label string LSTR="`amgetconf $SET labelstr | sed -e 's/[\^\$\"]//g'`" # Get tapes TAPELIST="`amstatus $SET | egrep $LSTR | awk '{ print $9 }'`" # Set tape to no-reuse for TAPE in $TAPELIST ; do amamdin $SET no-reuse $TAPE done exit 0 ------------------------------------------------------------------------- Regards Marc -- Marc Muehlfeld (Leitung Systemadministration) Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost Lochhamer Str. 29 - D-82152 Martinsried Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78 http://www.medizinische-genetik.de