Bacula-users

Re: [Bacula-users] multiple mtx-changer scripts

2008-07-21 23:04:19
Subject: Re: [Bacula-users] multiple mtx-changer scripts
From: Henry Yen <henry AT AegisInfoSys DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 21 Jul 2008 23:04:04 -0400
perhaps looking up the parent processid.  in bash, it's a preset variable
called "$PPID"; from there, look up the parent's process name.

On Mon, Jul 21, 2008 at 17:25:03PM -0700, Mark Nienberg wrote:
> I'd like to be able to use a different version of the mtx-changer script when 
> I use 
> bconsole than the one I assigned to the "Changer Command" in bacula-sd.conf.  
> I guess 
> I can script a wrapper for bconsole to rename the mtx-changer scripts as 
> needed and 
> then change them back afterward.  Or I could write a script to run before and 
> after 
> scheduled jobs to do the same thing.  But if anyone has a better idea I'd 
> like to 
> hear it.  Ideal solution would be if the mtx-changer script could recognize 
> if it is 
> being called from bconsole vs a bacula backup or restore job.
> 
> Thanks,
> 
> Mark
> 
> P.S. Why?  Because I have modified the "load" command to use "btape" to read 
> the 
> bacula label on the volume after loading it.  If it fails, then it unloads 
> and 
> reloads the tape and tries again. This is an attempt to automatically fix the 
> I/O 
> problem that happens about 10-20% of the times bacula changes a tape in the 
> middle of 
> a backup.  Note that it is not a timing problem.  It happens even after 
> "wait_for_drive" returns ready.  Obviously, when working at bconsole, there 
> are some 
> commands that I have to perform on tapes that have no labels, so I need a 
> different 
> "load" command.  But don't get bogged down thinking about all this, just 
> think about 
> the question above, OK?

-- 
Henry Yen                                       Aegis Information Systems, Inc.
Senior Systems Programmer                       Hicksville, New York

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users