On Wed, Jul 06, 2005 at 03:18:03PM +0300, viktorija wrote:
> Hello,
> 
> firstly thanks to all who helped me in the previous problems.
> For this moment am configuring second backup server for workstations and 
> there will be another backup cycle. Every day will be running incremental 
> backup. It is planned to store only 7 day old backups. Older than 7 day 
> backup should be deleted. So here i stuck. How to say to bacula to keep only 
> 7 day backups, others delete. I have try to use recycling, but something 
> wrong... May be someone can give me configuration example of bacula director? 
> It would be very helpfully.
> 
> Thanks a lot!
> 
> Viktoria

Viktoria,
What you want to use here is retention.  Retention specifications come
in three flavors -- Volume, Job, and File.

To give an example, I use two pools, one for Full backups, one for
incrementals:

Pool {
  Name = Full
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 365d
  Accept Any Volume = yes
  Recycle Oldest Volume = yes
  Recycle Current Volume = yes
  Label Format = "VXA-V17-Full-"
  Maximum Volumes = 3
}

Pool {
  Name = Inc
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 90d
  Accept Any Volume = yes
  Recycle Oldest Volume = yes
  Recycle Current Volume = yes
  Label Format = "VXA-V17-Inc-"
  Maximum Volumes = 2
}


The Volume Retention directives here indicate that Incremental volumes
will be kept for 90 days before becoming available for re-use, while
Full backup volumes remain valid for a year.

File Retention and Job Retention are specified per-client rather than
per-pool, and control how long File and Job records are kept in the
catalog before becoming eligible for automatic pruning.  Since there is
no way to specify File and Job retention times on a job-level basis, and
since records are pruned based on the shortest of Volume, File and Job
retention times, you should probably set your Job and File retention
times equal to the longest Volume retention time of your media pools. So
in my case, all Client records have JobRetention and FileRetention set
to 365d, the same as my Full poool's Volume retention.


-- 
 Phil Stracchino       [EMAIL PROTECTED]
    Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037         Landline: 603-886-3518


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to