On Fri, Jan 19, 2001 at 08:53:49AM -0600, Andrew Robinson wrote:
> At 07:23 AM 1/19/01 +0100, Jens Bech Madsen wrote:
> >Ben Elliston <[EMAIL PROTECTED]> writes:
> >
> > > Is there a way for Amanda to eject the tape at the end of a run so that I
> > > can simply remove it each day (and to indicate that the tape run has
> > > actually completed)?
> > >
> > > Or should I just run `mt offline' myself?
> >
> >Yes.
> 
> You can set your crontab entry that starts amanda to eject the tape:
> 
>    0 23 * * * /usr/local/sbin/amdump Daily1 && mt offline
> 
> Technically, you have ejected the tape yourself, but the tape will be 
> waiting for you when you arrive at the office in the morning.

Or run amanda from a wrapper script.  Which we do anyway, to 
accomplish certain other preparations and cleanup. 

0 23 * * * /backup/bin/amanda-wrapper.sh

amanda-wrapper.sh may contain things such as

-- Scheduling of archival backups, which may be a bit
   more than "cron" understands.

-- Taking snapshots of databases for backup purposes

-- gathering other bits and pieces deemed inconvenient
   for inclusion in disklists, onto a convenient
   rotating archive.  For example, snapshots of /etc
   from all the hosts in the office.  Or an rsync
   of material on hosts connected by low-speed link,
   which renders normal backups impractical.

-- And of course, ejecting the tape.

-- 
-----------------------------------------------------------------
 Dan Wilder <[EMAIL PROTECTED]>     Technical Manager & Correspondent
 SSC, Inc. P.O. Box 55549     Phone:  206-782-7733 x123
 Seattle, WA  98155-0549      URL    http://www.linuxjournal.com/
-----------------------------------------------------------------

Reply via email to