Bacula-users

Re: [Bacula-users] Script to find/delete disk volumes which are no longer used (slight change)

2013-06-10 02:42:55
Subject: Re: [Bacula-users] Script to find/delete disk volumes which are no longer used (slight change)
From: Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 10 Jun 2013 07:55:39 +0200
Hello,

On 6/7/2013 11:07 AM, Jonathan Bayer wrote:
Hi,

We are using Bacula to backup a number of VMs.  The backup is being done to disk volumes.

The configuration I've set up is still being tuned.  In the meantime, I found that there are a number of disk volumes which, which the file(s) themselves are rather large, all the files on the jobs which are in that volume have been expired, so the physical volume itself can be deleted both from the database and the disk.

I've written a script which I've included below.  I'd appreciate any comments on it.  Hopefully this will help someone else.

Well, you can use Bacula internal truncate volumes functionality for that. You do not need to manually delete volumes.

best regards
--
Radosław Korzeniewski
radoslaw AT korzeniewski DOT net
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>