This may or may not be relevant... I am testing an older version of Bacula at a client, and I don't think it has the script hooks that allow the automatic mounting and unmounting of USB (or other removable) disks. Also, they are currently using Amanda so Bacula is only backing up a very small amount of data for testing purposes, so I never wanted to be in the position where Amanda tries to mount or unmount the disk when Bacula was using it, or visa versa.
The solution I decided on was to use autofs. I have this in auto.master: /vol /etc/auto.vol --timeout=3 And this in auto.vol: backup -fstype=auto,rw,sync :/dev/sda1 The current limitation is that the device has to be /dev/sda1, but unless the system has gotten itself confused, the USB drive is always /dev/sda1 so I haven't found it a problem yet. This setup means that as soon as /vol/backup is accessed, the drive mounts, and as soon as there has been no access for 3 seconds (--timeout=3 in auto.master), it unmounts again. It saves mucking around with scripts in either Bacula or Amanda, and means that if someone does a restore, there is no chance of them forgetting to umount the drive, which was previously causing all sorts of problems. James > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bacula-users- > [EMAIL PROTECTED] On Behalf Of Arno Lehmann > Sent: Friday, 26 May 2006 05:13 > To: bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] automatic (un)mount of USB disk does not work > > Hi, > > On 5/24/2006 6:19 PM, Henning Holtschneider wrote: > > On Wednesday 24 May 2006 17:34, Alan Brown wrote: > > > > > >>On Wed, 24 May 2006, Henning Holtschneider wrote: > >> > >>>I'm trying to get a USB disk to be automatically mounted and unmounted > >>>before/after each backup job with Bacula 1.38.9. My USB drive in at > >>>/dev/sdb, > >> > >>You cannot guarantee it will always be there. > > > > > > That's true, but I wasn't at the point to deal with this, yet :-) > > > > > >>>so I created this device configuration for the Storage Daemon: > >> > >>It's better and safer to mount by UUID or Volume label. > > > > > > How do I do this? I'm a bit confused because the documentation does not > seem > > to be up to the code and it mainly refers to DVDs, which have to be > treated > > differently than removable hard drives. > > > > I know that I can use fstab-sync to automatically mount any partition on > a > > hot-plug device to a unique mount point, but how does this integrate > with > > Bacula? > > It doesn't. At least, not by using the directives meant for DVD writing. > There was some detailed mail exchange in bacula-users some time ago > analyzing and finally explaining how to use (multiple) external hard > disks as storage device. DVD writing is completely different and > requires some external script to actually transfer data from Bacula to > disk. The former is what you should try to find in the archive - search > for mail from Barry L Bond - the latter would require you to modify the > dvd-handler.pl script to write to a hard disk, not a DVD. > > Arno > > > Best regards, > > Henning Holtschneider > > -- > > LocaNet oHG - http://www.loca.net > > Lindemannstrasse 81, D-44137 Dortmund > > tel +49 231 91596-25, fax +49 231 91596-55 > > sip [EMAIL PROTECTED] > > -- > IT-Service Lehmann [EMAIL PROTECTED] > Arno Lehmann http://www.its-lehmann.de > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users