On Fri, 17 Nov 2000, Denise Ives wrote:
> Can Amanda be configured to automatically eject the tape from the tape
> drive when a dump to tape is finished?
When I had only one tape drive, I ran a script which contained
amdump $config
amtape $config eject
(I don't remember who suggested it to me, but thanks!)
Now I have two drives configured as chg-multi, but
sometimes backups only require one tape. amtape doesn't
know how many tapes were used. I modified the script.
amdump $config
amtape $config slot 1
amtape $config eject
amtape $config slot 2
amtape $config eject
Each day I still need to figure out if a tape wasn't
used and needs to be reloaded.
I resisted writing a perl script to handle ejecting
because I was concerned about keeping the list of tape
drives up-to-date in both amanda and the perl script.
Yes, the drives don't change often, so that was probably
a silly concern. perl could probably figure out which
tape shouldn't be ejected from a combination of "amadmin tape"
and "amtape show". Then, maybe, I could turn the daily tape
handling over to someone else, who only had to insert the
next available tape(s) in the available drive(s).
Ron
[EMAIL PROTECTED]