here's my crontab entry:

0 1 * * 1-5 /usr/bin/amdump DumpSet1 && /usr/bin/amcleanup DumpSet1 && eject
/dev/st0

The '&&' means that the current command won't execute unless the last command
exited with return code 0 (without errors) so you don't run amcleanup unless
amdump finished properly, and you won't eject the tape either.

oh, and in addition, I did NOT use the no-rewind tape device for the eject
command, so that the ejected tape is already rewound and ready for re-use
again.

cheers!

stephen.

Steve wrote:

> Hi,
>
> I'm getting Amanda together but I cannot find a reference of where I can
> place an eject command to run after the backup is done. Besdies from being
> handy, this used to be a handy way of knowing right of the bat that the
> backup was done/not done.)
>
> Any pointers would be appreciated.
> --
>
> Steve Szmidt
> V.P. Information
> Video Group Distributors, Inc.

Reply via email to