Too bad there isn't a way to run a script on an SD that is on a
different system from the Director (yet)
Gordon McLellan wrote:
Rex,
If your tape drive lives on the same machine as the director, you can
use the "RunsOnClient=No" directive to make the script run on the
director, which will then run it against the tape drive.
That was the problem I had trying to run scripts which accessed the
tape drive, for some reason, the client won't run scripts that access
the tape drive. My script is for scheduled ejection and injection of
tapes. Added the runson bit and now it works like a charm.
Gordon
On 3/28/07, Rex Wheeler <[EMAIL PROTECTED]> wrote:
I am using a stand alone drive and not a changer. Is there a directive
that I can use to cause bacula to execute a script prior to the mount?
I see that there is a "Mount Command" directive, but it does not seem to
be called for my jobs. I am not sure if it will get called for Tape
devices.
I tried the following:
Device {
Name = DLT-7000
Media Type = DLT
Device Type = Tape
Archive Device = Tape0
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
RandomAccess = no
Mount Command = "init_dlt %a"
}
My init_dlt.cmd file is in the same directory as the mtx-changer.cmd
file and contains:
@echo off
SET MT="C:\Program Files\Bacula\bin\mt.exe"
%MT% -f %1 setblk 0
%MT% -f %1 compression 1
When I run a job, my init_dlt script does not get called. My script
works if I just run it (I can tell because when I run it, the
compression indicator lights up on the tape drive.) Any suggestions?
Thanks,
Rex
-----Original Message-----
From: Brian Debelius [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2007 9:49 AM
To: Rex Wheeler
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Should tapes drives on windows work?
From an earlier post this week...
Great!
Now you have to modify the mtx-changer.cmd script. This will make
sure
that the drives are set corectly across reboots.
:cmdLoad
CALL :debug "Doing mtx -f %ctl% load %slot% %drive%"
%MTX% -f %ctl% load %slot% %drive%
SET rtn=%ERRORLEVEL%
IF ERRORLEVEL 1 GOTO :cmdExit
CALL :wait_for_drive %device%
REM Force block size to 0 for variable #add this
%MT% -f %device% setblk 0 #add this
GOTO :cmdExit
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users