On Thu, 2009-12-10 at 16:11 -0500, John Drescher wrote:
> On Thu, Dec 10, 2009 at 3:53 PM, Brian Clarkson <bri...@lnstar.com> wrote:
> > On Thu, 2009-12-10 at 15:06 -0500, John Drescher wrote:
> >> >> Make the volume retention much longer. And then apply that to all of
> >> >> your volumes.
> >> >
> >> > Wouldn't the volume retention period need to be shorter?
> >> >
> >>
> >> Retention period is how long to keep the volume before it can be reused.
> >
> > So if I don't want to reuse volumes I should set the retention period to
> > zero?
> >
> 
> Definitely not. I know telling bacula to keep your backup data for 0
> seconds is not what you want. Set this to the amount of time you want
> to keep your data after the backup is finished.
> 
> > Reusing the files (a volume is just a collection of 512m files per my
> > configuration) is what I want to stop.
> >
> 
> I got you there. As you mentioned you need to turn off automatic
> volume recycling. Please post your configs. Have you had bacula reload
> the config file after you have changed it?

I restarted the bacula director after making the changes.  Subsequent
backup jobs still re-used files.

>From bacula-dir.conf

Pool {
  Name = Default
  Label Format = "${JobName}-${Level}-${NumVols}"
  Pool Type = Backup
  Recycle = no
  AutoPrune = yes                     # Prune expired volumes
  Use Volume Once = yes
  Volume Retention = 25 days         
  MaximumVolumeBytes = 512m
  Maximum Volume Jobs = 1
}

Client {
   Name = client-fd
   Address = server.com
   FDPort = 9102
   Catalog = MyCatalog
   Password = "***"
   File Retention = 21 days
   Job Retention = 21 days            
   AutoPrune = yes
}

Job {
  Name = "Backup Server"
  Type = Backup
  Client = server-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = Storage
  Messages = Standard
  Pool = Default
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/server.bsr"
}

Storage {
  Name = Storage
  Address = storage.server.com
  SDPort = 9103
  Password = "***"
  Device = StorageServer
  Media Type = File
}

>From bacula-sd.conf

Device {
  Name = StorageServer
  Media Type = File
  Archive Device = /home/bacula-data/
  LabelMedia = yes;                   # lets Bacula label unlabeled
media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}



------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to