Bacula-users

Re: [Bacula-users] Automatically Disposing of Volumes

2009-02-13 18:08:14
Subject: Re: [Bacula-users] Automatically Disposing of Volumes
From: Chris Lieb <chris.lieb+nospam AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 13 Feb 2009 16:01:53 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Drescher wrote:
>> If you really want to do this you will have to roll your own solution.
>> Most likely this will involve a cron job scripting commands to
>> bconsole.
>>
> 
> I know I was a little unclear here. The rm of the volume file happens
> outside of bacula. The script would use bconsole to figure out what
> volume to rm. It would then delete the volume from bacula and finally
> do the rm in the shell to remove the volume from disk.
> 
> John
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H

Ok, I've got everything scripted up except the deletion.  What all needs
to be done to delete a volume?  Right now I am looking at doing a:

$ bconsole <<EOF
> delete media volume=volume_name
> quit
> EOF
$ rm -f /backup/volume_name

Is that all that needs to be done to delete a volume?

Thanks,
Chris Lieb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJJle3RAAoJEJWxx7fgsD+CwG8IAJLCv5VhdM5aGIiztjlLEuCa
6Yz0rIPJAnwDVna27fbf62x2ReMMDPeQOsHnyLAjUhN6/jSDwEsjSwRJO65J89zl
SujEjmA6RsbQydZTy4qPIDA1RSzmgOLHCD3V+KDLagntW0fy9rSRdoJtTobAzRKf
YpqowPxQ0nuAZekNdN92sOqACl1zzEi1hwY9R/1tYNDxryQjbI497yDg4jTgncD9
u3sRA81lz+Txnks4t9P/N23VY4FyYVym0pMdMcui4cdAh5Nj14Y52uj+TA2Jw/UA
TSy8pEbBEDYzOXASbzi8wOote3zkkwt2zD9+qhT2TlS0JJfycNyle2ZbPcj91wc=
=hiBr
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users