>>>>> On Fri, 10 Mar 2006 20:42:58 +0000 (GMT), david robert <[EMAIL >>>>> PROTECTED]> said: > > thanks for your help once i use the the Offline On Unmount my script would > be like this is it correct > > #!/bin/sh > /usr/bin/bconsole -c /etc/bacula/bconsole.conf <<END_OF_DATA > unmount storage=DLT > END_OF_DATA > # the following is a shell command > /etc/bacula/scripts/delete_catalog_backup > exit 0
Yes, correct. > I have one more question i am using one version of bacula server and i > need to install the same version of clients or i can install latest > version of clients alos for older version of bacula server. Install the same version, because sometimes the protocol between the client and server changes. __Martin > > > Martin Simmons <[EMAIL PROTECTED]> wrote: > >>>>> On Fri, 10 Mar 2006 14:03:29 +0000 (GMT), david robert said: > > > > my script is like below now > > > > #!/bin/sh > > /usr/bin/bconsole -c /etc/bacula/bconsole.conf <> unmount storage=DLT > > END_OF_DATA > > # the following is a shell command > > /etc/bacula/scripts/delete_catalog_backup > > ### export TAPE=nst0 > > export TAPE=/dev/nst0 > > mt rewind > > mt offline > > exit 0 > > > > this is ok or i need to completely avoid the mt commnd using Offline On > > Unmount i didn't get you where i can use this if possible show me in script > > > > thanks for your help > > Ah, sorry, I forgot to add that Offline On Unmount is an option in the Device > section of bacula-sd.conf (see > ). > > If caused bacula to send the equivalent of "mt offline" when you use the > unmount command. I'm sure it rewinds as well, so if that works then you can > remove all the mt lines in the script. > > __Martin > > > > > > > > Martin Simmons wrote: > > >>>>> On Fri, 10 Mar 2006 11:16:34 +0000 (GMT), david robert said: > > > > > > i am sending here my bacula director,storage and tape drive permissions > > > > > > bacula 1280 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c > > > /etc/bacula/bacula-sd.conf -u bacula -g tape > > > bacula 1281 1280 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c > > > /etc/bacula/bacula-sd.conf -u bacula -g tape > > > bacula 1283 1281 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c > > > /etc/bacula/bacula-sd.conf -u bacula -g tape > > > bacula 1412 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c > > > /etc/bacula/bacula-dir.conf -u bacula -g bacula > > > bacula 1413 1412 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c > > > /etc/bacula/bacula-dir.conf -u bacula -g bacula > > > bacula 1414 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c > > > /etc/bacula/bacula-dir.conf -u bacula -g bacula > > > bacula 1415 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c > > > /etc/bacula/bacula-dir.conf -u bacula -g bacula > > > > > > nst0 permissions as follows > > > > > > crw-rw---- 1 root tape 9, 128 2005-02-26 06:38 nst0 > > > > The bacula-dir (which runs the RunAfterJob script) is running as group > > "bacula" but the tape can only be accessed by group "tape". The bacula-sd is > > running as group "tape" so that is OK. > > > > You could try using the "Offline On Unmount" to make the bconsole's unmount > > command eject the tape, which might remove the need for mt. > > > > __Martin ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users