>> I asked this same question recently. There isn't a standard one. I >> will be writing one shortly for my own needs. >> >> > Turns out it was really easy, I wrote one last night. It's below. You > just want to change the find part of the script to find the appropriate > volumes, then run this as a before or after job script. You will want to > check this by working with a test pool, as I did, just to be sure it's > right. > > #!/bin/bash > > for file in `find /mnt/mybook/bacula -name 'Test-*'`; do > volume=`basename ${file}` > echo "*** Deleting Vol ${volume} from bacula catalog" > /usr/sbin/bconsole <<EOF > delete volume="${volume}" yes > quit > EOF > echo "*** Deleteing ${file} from disk" > rm -f ${file} > done >
I think others were looking for the more complicated task of deleting file volumes automatically after their retention period had expired. John ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users