Bacula-users

Re: [Bacula-users] Count Based Retention

2008-08-14 10:48:16
Subject: Re: [Bacula-users] Count Based Retention
From: John Yates <yates AT flatiron DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 14 Aug 2008 08:48:05 -0600
On Thu, Aug 14, 2008 at 10:30:10AM -0400, Ryan Novosielski wrote:
> John Yates wrote:
> > Is there any way to get Bacula to expire backup jobs based on a count
> > of existing jobs of the same type rather than by how old each job of a
> > type is?  I am currently running a job every night that backs up to
> > disk, and I want to keep the two most recent ones.  If it set the
> > retention period to two days, that should ususall do the right thing,
> > but if, for example, I shut off all my computers and go on vacation
> > for a week, when I come back, my backups will all be expired -- not
> > what I want.
> > 
> > I suspect that what many, if not most, people really want is to keep a
> > specific number of old backups, not any that are more recent than a
> > certain date.  Is there some way to make bacula work this way?  The
> > Storix backup product that I have used can do this.
> 
> Are you speaking from experience with Bacula? Bacula is very reluctant
> to recycle any data, especially if there are no current backups. I see
> what you're getting at, but unless I'm missing something, that is not
> what actually happens, so I'm guessing this is hypothetical.
> 
> There is no way without scripting to ask it to keep a certain number of
> backups, though with predictable scheduling, this will happen anyway.
> And if you're worried about throwing away current backups, I'm really
> not convinced that it has this problem.
> 
> - --
>  ---- _  _ _  _ ___  _  _  _
>  |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
>  |$&| |__| |  | |__/ | \| _| |novosirj AT umdnj DOT edu - 973/972.0922 
> (2-0922)
>  \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630

I should have mentioned some of my other concerns:  I also want to
arrange to automatically delete the disk files that contain expired
(is this the correct terminology?) backups.  I have set up volume
labeling to contain the job name and date, and it appears that when
bacula recycles a disk volume, it doesn't relabel it, so in order to
get the "correct" label, I need to delete old backup files rather than
recycle them.

Therefore, I am writing a script to look for expired disk backup files
and delete them.  This makes expiring backups by count more
important.  Also, at least for me, I seems the more natural way to
think about how to decide when to expire a backup.

John

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users