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: [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users