some useful script for bacula report function