my script is like below now
#!/bin/sh
/usr/bin/bconsole -c /etc/bacula/bconsole.conf <<END_OF_DATA
unmount storage=DLT
END_OF_DATA
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
/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
Martin Simmons <[EMAIL PROTECTED]> wrote:
Martin Simmons <[EMAIL PROTECTED]> wrote:
>>>>> On Fri, 10 Mar 2006 11:16:34 +0000 (GMT), david robert <[EMAIL PROTECTED]>said:
>
> i am sending here my bacula director,storage and tape drive permissions< BR>>
> 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
Win a BlackBerry device from O2 with Yahoo!. Enter now.