Bacula-users

Re: [Bacula-users] unmount after last job

2009-05-29 17:09:28
Subject: Re: [Bacula-users] unmount after last job
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 29 May 2009 22:02:23 +0100
>>>>> On Wed, 27 May 2009 22:09:36 +0200, Falk Sauer said:
> 
> have anybody a suggestion how to configure a admin job that only does 
> the unmount? This job would i start with a priority after the 
> BackupCatalog.

Yes, something like this:

Job {
  Name = "UnMountTape"
  Type = Admin
  JobDefs = "FileJob"
  FileSet="Catalog"
  Priority = 499
  Schedule = "AdminAlwaysCycle"
  RunBeforeJob = "/usr/local/bin/ensure_storage_unmounted"
}

/usr/local/bin/ensure_storage_unmounted is a script like this:

echo "unmount storage=my-storage-device" | bconsole -c bconsole.conf

__Martin

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
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>