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 = "">
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:glacerda AT lge.ibi.unicamp DOT br]
Sent: 16 January 2015 15:23
To: bacula-users AT lists.sourceforge DOT 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:
Name = homedir-bioinfo03-weekly
Client = bioinfo03.ibi.unicamp.br-fd
FileSet = homedir-bioinfo03
Storage = tape-autochanger
Name = homedir-bioinfo03-daily
Client = bioinfo03.ibi.unicamp.br-fd
FileSet = homedir-bioinfo03
Name = "homedir-bioinfo03"
File=/usr/local/data/lge/eduformi
Purge Oldest Volume = Yes
Volume Retention = 28 days
Purge Oldest Volume = Yes
Volume Retention = 6 days
Maximum Volume Bytes = 80G