Hi all,

What's the best way to read Bacula label of a currently mounted tape directly from bash?

In our environment I can fairly reliably determine it with:

tail -1 /var/lib/bacula/log
08-Aug 14:19 bacula_dir JobId 0: Recycled volume "LTO-W20110914A"

but ideally I would prefer Bacula to report the current actual state.

I'm aware of bconsole, btape etc. but they are all interactive consoles.

I think it's possible to query Bacula database (MySQL in my case).

Any neat "one line" suggestions?

Thanks,
Adam


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to