Bacula-users

Re: [Bacula-users] Job vs volume retention periods

2009-06-24 08:57:36
Subject: Re: [Bacula-users] Job vs volume retention periods
From: Dirk Bartley <dbartley AT schupan DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 24 Jun 2009 08:22:38 -0400
On Wed, 2009-06-24 at 09:14 +0200, Fahrer, Julian wrote:
> Hi Erik,
> 
> volumes will only be reused after the volume retention period is reached.
> And the point of keeping a volume which doesn't contain jobIDs is that you 
> could import the tape or recover data from it using btape since it still 
> contains all files.

Greetings

Julian is correct with exceptions.

  Recycle Oldest Volume = yes
  Recycle Current Volume = yes
  PurgeOldestVolume = yes

Warning, the following description may not be perfect:

I use recycle oldest and purge oldest.  This way, the job records can be
maintained in the catalog with an unresonably long job retention period.
When the director completes jobs, it will still perform pruning
operations pruning file records.

Then when the director goes to schedule a job, it will purge job records
from the volume and label it recycled if all jobs have had their file
records pruned.  The volume chosen to recyle will be the one that has
not been written to for the longest period.

The status dir will show the recycled volume as the volume scheduled to
use.

For instance, I have a pool with two tapes for Tuesday and Thursday.  I
want to use it four times then have it schedule using the othe tape
rotating every two weeks.

Pool {
  Name = LTO_TueThu
  Pool Type = Backup
  Recycle = yes               
  AutoPrune = yes   
  Volume Retention = 16 Days 
  Volume Use Duration = 10 Days 
  Recycle Oldest Volume = yes
  PurgeOldestVolume = yes
  Storage = LTO
}


Set it up recently and it seems to work so far.  Best of luck.  The
documentation is awesome because there are so many possible parameters.
The one thing that may be missing is more recipes from current users.

Dirk

> 
> Kind regards
> 
> Julian
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: phatrik [mailto:bacula-forum AT backupcentral DOT com] 
> Gesendet: Mittwoch, 24. Juni 2009 03:46
> An: bacula-users AT lists.sourceforge DOT net
> Betreff: [Bacula-users] Job vs volume retention periods
> 
> 
> Hi,
> 
> I'm confused in regards to job retention vs volume retention.  From the 
> little bit I understand, if the volume retention period is passed and bacula 
> is unable to find any other appendable volumes in the client's stoarge pool, 
> it will delete all file and job records and then re-use that volume.  
> However, how about if all the jobs in that volume have been pruned but the 
> volume retention period hasn't passed yet (and of course recycling is 
> enabled) Will bacula still re-use the volume since no more jobs remained 
> after they've all been pruned?  If it does, what's the purpose of having a 
> volume retention period which is usually without a doubt longer than the job 
> retention period?  If it doesn't, what's the point of keeping a volume which 
> doesn't contain jobIDs which can't be restored anymore?  
> 
> 
> thanks in advance,
> 
> 
> 
> Erik
> 
> +----------------------------------------------------------------------
> |This was sent by erik.godin AT gmail DOT com via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +----------------------------------------------------------------------
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users