Sorry for the delayed response - I was hoping to reply with details of the solution I found, but alas, not yet.
Firstly the automount function in Bacula refers to the ‘mounting’ of the virtual tape file that Bacula uses when backing up to block storage devices. There is not (to my knowledge) any functionality in Bacula to automatically mount an external USB drive (or any drive for that matter).
I have considered using pre-backup script/s to mount the USB drive. The major issue with this is that it would only work if the drive is connected before be backup starts. If it’s connected after the backup is scheduled to start, I would have to manually mount the drive for the backup to proceed. This isn’t a great solution for me.
Leaping off the previous reply, I came across this article which appears to provide information about what I’m trying to achieve (but the forum will only allow me to post two links).
I first tried installing uam (GitHub - projg2/uam: Lightweight filesystem (pendrive) automounter based on udev rules.), since it appeared to do basically what I was looking for and I have no burning desire to unnecessary reinvent the wheel. However, after crashing around trying to get it installed (there does not appear to be any installation instructions for it anywhere), I’m unable to get it to work.
I then came across ldm (GitHub - LemonBoy/ldm: A lightweight device mounter, with libudev as only dependency) which seems to be an even better fit for my needs. However, attempting to compile and install this was also unsuccessful as it appears to be unable to locate the libudev library that it depends upon:
c -std=c99 -D_GNU_SOURCE -Wall -Wunused-parameter -O2 -DVERSION_STR="\"v0.7\"" `pkg-config --cflags libudev mount glib-2.0` -o ldm.o -c ldm.c
Package libudev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libudev.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libudev', required by 'virtual:world', not found
Package 'mount', required by 'virtual:world', not found
Package 'glib-2.0', required by 'virtual:world', not found
ldm.c:6:10: fatal error: glib.h: No such file or directory
6 | #include <glib.h>
| ^~~~~~~~
compilation terminated.
make: *** [Makefile:26: ldm.o] Error 1
So, after all of that, maybe I should rephrase my question…
All I am trying to achieve here is automatically mounting a ground of different USB drives at a consistent mount point (so that bacula knows where to find it). I would have assumed there was a generally accepted ‘standard’ way of achieving this in non-GUI envisionments (although my research seems to come up short on this).
Any suggestions would be greatly appreciated, and/or assistance in getting one of the above tools to successfully install (and work).