Bacula-users

Re: [Bacula-users] Automatic tape drive unload?

2011-11-10 12:15:24
Subject: Re: [Bacula-users] Automatic tape drive unload?
From: Konstantin Khomoutov <flatworm AT users.sourceforge DOT net>
To: Dirk Billerbeck <dirk.billerbeck AT ensec DOT de>
Date: Thu, 10 Nov 2011 21:13:32 +0400
On Thu, 10 Nov 2011 15:34:07 +0100
Dirk Billerbeck <dirk.billerbeck AT ensec DOT de> wrote:

> I'm new to Bacula and still learning the concepts of it. So maybe
> I've overlooked that in the documentation but there is one thing I
> couldn't figure out right now:
> 
> Is it possible to unload a tape drive automatically after it has been 
> idle for a specified period of time?
[...]

I don't think Bacula has the concept of "idleness" but I think you
could explore a possibility to run some command that would eject the
tape after a specified job using that job's "after job" script.

Another route would be to script such action by external means, say,
call something like

#!/bin/sh
echo 'umount storage=MyTape' | bconsole
mtx-changer some-command-to-eject-the-device-here

from a cron job.  But it implies the cron job should only run when
Bacula is guaranteed not to access the device in question.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>