I've setup a script that umount RDX media for a vchanger-backed up storage
daemons.
The script simply do:
echo "status storage=$STORAGE" | bconsole | grep "^No Jobs running\." >
/dev/null
if [ $? -ne 0 ]; then
echo "Backup in corso, abortisco l'unmount del RDX."
exit 0
fi
and works as expected, until you have only one device in the storage daemon;
but if you have more than a device, coud be that the needed device is idle,
but the other not, so media are ejectable but script fail.
There's some way to test that a particular device is busy?! Thanks.
--
L'Italia ripudia la guerra come mezzo di risoluzione
delle controversie internazionali. (art. 11 Costituzione)
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users