In a message dated: Fri, 17 Nov 2000 15:48:40 GMT
Denise Ives said:

>Can Amanda be configured to automatically eject the tape from the tape
>drive when a dump to tape is finished? 

Well, there's not much to it, in amanda's crontab entry, just do something
like:

        55 23 * * 0 amdump DailySet1 && amtape DailySet1 eject
or
        55 23 * * 0 amdump DailySet1;amtape DailySet1 eject

>Or should I write a perl or shell script to automate the both the dump and
>eject tape process?

This is also a perfectly viable option.  Personally, I like simplicity, so I'd 
probably opt for one of the above methods.  But, as Dave W. pointed out,
if you use an autochanger, you can just run amcheck right after the dump is 
done, and this will accomplish the same thing.

The way I handle it with my autochanger is to set up crontab entries for
each day of the week to run 'amtape <config> slot #' to make sure the correct 
slot is loaded each day.  A little verbose, and probably better handled
with a script, but it works:

        45 23 * * 1 amtape DailySet1 slot 1

This runs 10 minutes before amdump runs.  I have one for each day of the week.
I did it this way so that it was obvious to anyone else what was going on.
I may place it all in one script and exec that instead, but either way works 
just fine.

-- 
Seeya,
Paul
----
           I'm in shape, my shape just happens to be pear!

         If you're not having fun, you're not doing it right!


Reply via email to