Re: Make amanda unload tape drive?
2003-01-09 16:58:09
On Thu, 9 Jan 2003, John Oliver wrote:
>Can amanda send a signal to my DLT IV to unload the tape after backups
>are finished, so whoever goes back to swap tapes can just do it without
>waiting to manually unload?
An excerpt from the Amanda user's crontab on my amanda server:
45 0 * * 2-6 /usr/local/sbin/amdump Daily && /usr/bin/eject -q /dev/nst0 >&
/dev/null
That's all it takes. The '&&' will ensure that the eject command only
executes if the amdump run returns zero (meaning it completed
successfully). The redirection of stdout/stderr into /dev/null ensures
you don't get obnoxious emails from cron following a run where there was
no tape in the drive and so nothing to eject.
--
Brandon D. Valentine <bandix AT structbio.vanderbilt DOT edu>
Computer Geek, Center for Structural Biology
"This isn't rocket science -- but it _is_ computer science."
- Terry Lambert on current AT FreeBSD DOT org.
|
|
|