Stefan G. Weichinger wrote:
amdump daily && mt -f /dev/nst0 offl
in my crontab.
(if it is Linux, syntax varies with OS)
I use chg-multi, with multiple drives, and I have
this script to do my backups:
##################################
#!/bin/sh
CONFIG=$1
/opt/local/sbin/amdump $CONFIG
LOGF=`ls -t /var/opt/amanda/$CONFIG/log.2* | head -1`
/opt/local/sbin/amtoc -a -t $LOGF
grep '^START taper .* label ' $LOGF |
while read line
do
/opt/local/sbin/amtape $CONFIG eject
/opt/local/sbin/amtape $CONFIG slot prev
done
###################################
It generates an Table-of-contents for each tape and
ejects those drives which have been used.
The executables may be installed in different places on your
server.
--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|