Hi, On 6/2/2006 1:38 AM, Gregory Brauer wrote: > Arno Lehmann wrote: > >>Hello, >> >>On 5/26/2006 11:05 PM, Bill Moran wrote: >> >>>Gregory Brauer <[EMAIL PROTECTED]> wrote: >>> >>> >>>>At the end of our weekly cycle I would like to command >>>>our loader to unload any tapes that are in the drive >>>>to make for easy tape swapping. With versions of bacula >>>>prior to 1.38 the director daemon was running as root, >>>>so ejecting the tape was a simple matter of creating a >>>>job that ran an "mtx unload" as a RunBeforeJob rule. >>>>Now that bacula-dir is running as the bacula user for >>>>security, the bacula-dir no longer has permission to run >>>>mtx commands directly. I was wondering if there is a way >>>>I can command bacula-sd to eject the tapes on behalf of the >>>>director. >>> >>> >>>I use a combination of sudo and RunAfterJob to accomplish this. If >>>there's >>>a better way, I'd love to hear it :) >> >>Use the umount command from a Bacula shell? >> >>(Also possible in a RunAfterJob like 'echo "umount XXX|bconsole -c ...' >>in a shell.) > > > umount only detaches the storage deamon from the tape drive. It doesn't > actually force a changer tape unload.
Sorry, you're right. I probably mixed it up with the behaviour during the update command. > Looks like I'll be using the sudo method, but I'd sure like to > see this filed as a feature request: > > Add a bconsole command that will unload all tapes from all > drives in all changers. I'd even like commands to move tapes... Arno > Greg > > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users