Daniel Bloemer wrote:
Hello,
Josh Fisher wrote:
A RunBeforeJob script could mount the device with a simple mount
command. It could also tell if the drive was inserted by testing
whether or not the mountpoint existed. A RunAfterJob could unmount
the device just as easily. Of course, if multiple drives were being
used it would be neccessary to always insert the devices in the
correct order so that the device with a particular bacula volume
label was at the correct device node and mountpoint.
A better approach would be for the RunBeforeJob script to read the
bacula volume label from all inserted devices, find the mountpoint of
the device containing the desired label, mount it, and then create a
symlink to the mountpoint. The bacula job would use the symlink as
its ArchiveDevice. I have not tried this, and I'm not sure if the
RunAfterJob script could then figure out which device to unmount.
Unfortunately there is no RunStorageBeforeJob-Command.
Since Director and Storage are not on the same maschine here, a
RunBeforeJob-script has to do this stuff remote on another maschine.
I see. Michael Dauer mentioned restarting the SD in the before job, but
that wouldn't be very easy when the SD was on another machine either. It
would be necessary to restart the SD manually each time a USB drive was
inserted or removed.
I wonder if it is possible to start the SD with a USB drive inserted,
and then later remove the drive and insert another drive at the same
mount point without restarting the SD.
---
Josh Fisher
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users