Bacula-users

Re: [Bacula-users] Question about recycle = no

2010-01-17 13:21:11
Subject: Re: [Bacula-users] Question about recycle = no
From: Jon Schewe <jpschewe AT mtu DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Sun, 17 Jan 2010 12:18:29 -0600
On 01/15/2010 01:49 PM, Mike Holden wrote:
> John Drescher wrote:
>   
>>>>> That's what I intend to do as well by changing the find to be this:
>>>>>
>>>>> find /mnt/mybook/bacula -mtime +65
>>>>>
>>>>> This finds all files that haven't been modified in 65 days or more. If
>>>>> the retention period is set to 60 days, this would be a pretty safe way
>>>>> to do it.
>>>>>
>>>>>           
>>>> Looks good to me. Some may want different retention periods per pool
>>>> but with labeling the volumes this would be easy to adjust.
>>>>         
>>> True, there is that approach.
>>> What I'm actually thinking of is going the other way:  get Bacula to
>>> tell me what volumes have been pruned and moved into the Scratch pool,
>>> then delete them and their disk files.
>>>
>>>       
>> That would be a little more complicated but more accurate as you are
>> letting bacula decide what gets removed instead of externally forcing
>> the issue.
>>
>> John
>>     
> I posted a script recently on another thread which takes care of purging, 
> deleting
> volumes and deleting the files based on individual retention periods. Check 
> the archives
> over the last couple of weeks or so.
>   
Found your script in the archives. I see you're checking for recycle =
1, so you have recycle set to yes in the conf file? Could you send me
the Pool definition that you use this with?

I don't suppose anyone has written this such that it works with bacula
directly so you don't need to know the database to make it work.

Thanks.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users