You can try limiting your configuration to a single job, and tell it when to do 
a full or incremental backup through the schedule, like below.
Any backup type specified in the Schedule overrides the “Level = Full” in the 
job definition (which is still required to be there, but will be ignored if you 
specify it in the schedule).

Which pool to use can be specified per backup type in the job def.
As with Level, the ‘Pool =’ line is required, but it only provides a default. 
‘Full Backup Pool’ and ‘Incremental Backup Pool’ override it.

The storage can be specified in the pool resource, I moved it there because you 
have two pools on different storage devices. This isn’t required in either the 
job or the pool def, but if it isn’t specified in one it must be in the other.

Also remember that if you change anything in the include or exclude list in a 
fileset resource between backups, the next backup will default to full again 
(unless you tell it not to, by including a “Ignore Fileset Changes = yes” line 
in it – which will itself only take effect after the next backup, so you may 
still be saddled up with a full the first time if you’d rather have an 
incremental).


Based upon your configuration, I come to something like this (but without 
testing, absolutely no guarantee that it is working).


Schedule {
  Name = "WeeklyCycle"
  Run = Full sat at 20:10
  Run = Incremental mon-fri at 20:10
}

Job {
  Name = homedir-bioinfo03-weekly
  Client = bioinfo03.ibi.unicamp.br-fd
  JobDefs = DefaultJob
  FileSet = homedir-bioinfo03
  Level = Full
  Schedule = WeeklyCycle
  Spool Data = Yes
  Pool = Tape-Weekly
  Full Backup Pool = Tape-Weekly
  Incremental Backup Pool = File-Daily
  Type = Backup
  Messages = Standard
}

Pool {
  Name = Tape-Weekly
  Pool Type = Backup
  Storage = tape-autochanger
  Recycle = yes
  AutoPrune = yes
  Purge Oldest Volume = Yes
  Volume Retention = 28 days
  LabelFormat="Week-"
}

Pool {
  Name = File-Daily
  Pool Type = Backup
  Storage = File
  Recycle = yes
  AutoPrune = yes
  Purge Oldest Volume = Yes
  Volume Retention = 6 days
  Maximum Volume Bytes = 80G
  Maximum Volumes = 5
  Label Format = "Vol-"
}

From: Gustavo Lacerda [mailto:glace...@lge.ibi.unicamp.br]
Sent: 16 January 2015 15:23
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] Weekly full backups on tape, Daily incrementals on File

Hi,

This is the first time I'm configuring bacula. I have a autochan ger with 8 
slots and 1 drive. I tried to schedule a weekly full backup on tape and daily 
differential backups on file.  This is a small test. The whole full has 2GB in 
data. The tape backup run and terminated with no errors. However, the daily 
differential backups on File didn't recognize that I had alread done a full 
backup on tape and asks me to do a Full backup on file. Could you please help 
me?


The relevant parts of my dir.conf:

Job {
  Name = homedir-bioinfo03-weekly
  Client = bioinfo03.ibi.unicamp.br-fd
  JobDefs = DefaultJob
  FileSet = homedir-bioinfo03
  Level = Full
  Schedule = WeeklyCycle
  Storage = tape-autochanger
  Spool Data = Yes
  Pool = Tape-Weekly
  Type = Backup
  Messages = Standard
}

Job {
  Name = homedir-bioinfo03-daily
  Client = bioinfo03.ibi.unicamp.br-fd
  JobDefs = DefaultJob
  FileSet = homedir-bioinfo03
  Level = Differential
  Schedule = WeeklyCycle
  Storage = File
  Spool Data = no
  Pool = File-Daily
  Type = Backup
  Messages = Standard
}

FileSet {
  Name = "homedir-bioinfo03"
  Include {
    Options {
      signature = MD5
      onefs = yes
    }
  File=/usr/local/data/lge/eduformi
  }
}

Pool {
  Name = Tape-Weekly
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Purge Oldest Volume = Yes
  Volume Retention = 28 days
  LabelFormat="Week-"
}

Pool {
  Name = File-Daily
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Purge Oldest Volume = Yes
  Volume Retention = 6 days
  Maximum Volume Bytes = 80G
  Maximum Volumes = 5
  Label Format = "Vol-"
}

Best regards,
Gustavo
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to