Always Incremental is doing Full after Full

99 views
Skip to first unread message

Markus Dubois

unread,
May 15, 2021, 5:49:34 AM5/15/21
to bareos-users
Hi,

i've configured Always Incremental with Virtual Full according to examples from this list and the documentation.

if i dive into a backed up directory, with ls-l and with ls-lc the timestamps, even though diffrent between ls -l and ls-lc, are older than the last full (weeks behind) and haven't changed lately.
But, after i've launched the first Incremental, which is then doing a Full because there wasn't one, the next job is doing a full again, because the job found no earlier full in the catalog.

Am i doing something wrong? Here is my config:

JOBS:
____
Job {
  Name = "AIbackup-mediaserver"
  Client = "mediaserver"
  FileSet = mediaserver
  Type = Backup
  Level = Incremental
  Schedule = "AISchedule"
  Storage = File
  Messages = Standard
  Pool = AI-Incremental
  Maximum Concurrent Jobs = 5
  Full Backup Pool = AI-Consolidated
  Incremental Backup Pool = AI-Incremental
  Accurate = yes
  Allow Mixed Priority = yes
  Always Incremental = yes
  Always Incremental Job Retention = 7 days
  Always Incremental Keep Number = 7
  Always Incremental Max Full Age = 21 days
  Run Script {
    Console = ".bvfs_update jobid=%i"
    RunsWhen = After
    RunsOnClient = No
  }
}
____
Job {
Name = Consolidate
Type = Consolidate
Client = mediaserver
FileSet = mediaserver
Accurate = yes
Schedule = "ConsolidateSchedule"
Storage = File
Messages = Standard
Pool = AI-Consolidated
Full Backup Pool = AI-Consolidated
Incremental Backup Pool = AI-Incremental
Max Full Consolidations = 1
Prune Volumes = yes
}
____
Job {
Name = "mediaserver-vlt"
Client = mediaserver
FileSet = mediaserver
Schedule = LongTermSchedule
Type = Backup
Level = VirtualFull
Pool = AI-Consolidated
Messages = Standard
Priority = 30
Accurate = yes
Run Script {
Console = ".bvfs_update jobid=%i"
RunsWhen = After
RunsOnClient = No
}
}
___
SCHEDULE
___
Schedule {
Name = "AISchedule"
Run = Incremental sun-sat at 20:00 # (#10)
}
___
Schedule {
Name = "ConsolidateSchedule"
Run = Incremental 3/4 at 21:00
}
___
Schedule {
Name = "LongTermSchedule"
Run = on 1 at 12:00
}
___
STORAGE
___
Storage {
Name = FileCons
Address = "x"
Password = "x"
Device = FileStorageCons1 
Device = FileStorageCons2
Device = FileStorageCons3
Device = FileStorageCons4
Device = FileStorageCons5
Media Type = FileCons
Maximum Concurrent Jobs = 5
}
___
Storage {
Name = FileVLT
Address = "x"
Password = "x"
Device = FileStorageVLT
Media Type = FileVLT
}
___
DEVICE
___
Device {
Name = FileStorageCons1 # Multiple devices, different name and same media type, are configured to support simultaneous use.
Media Type = FileCons
Archive Device = /var/lib/bareos/storage
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
Device {
Name = FileStorageCons2
Media Type = FileCons
Archive Device = /var/lib/bareos/storage
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
Device {
Name = FileStorageCons3
Media Type = FileCons
Archive Device = /var/lib/bareos/storage
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
Device {
Name = FileStorageCons4
Media Type = FileCons
Archive Device = /var/lib/bareos/storage
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
Device {
Name = FileStorageCons5
Media Type = FileCons
Archive Device = /var/lib/bareos/storage
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
___
Device {
Name = FileStorageVLT
Media Type = FileVLT
Archive Device = /var/lib/bareos/storage
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
Description = "File device for VLT backups."
Maximum Concurrent Jobs = 5
}
___

Any hints?

Regards



Markus Dubois

unread,
May 15, 2021, 6:07:58 AM5/15/21
to bareos-users
forgotten my POOL configs, sry

POOL
___
Pool {
Name = AI-Consolidated
Pool Type = Backup
Recycle = yes
Auto Prune = no
Maximum Volume Bytes = 50G
Label Format = "AI-Consolidated-"
Volume Use Duration = 18 hours
Storage = FileCons
Next Pool = AI-LongTerm
Volume Retention = 1 years
Maximum Volumes = 260
}
____
Pool {
Name = AI-Incremental
Pool Type = Backup
Recycle = yes
Auto Prune = no
Maximum Volume Bytes = 50G
Label Format = "AI-Incremental-"
Volume Use Duration = 7 days
Storage = File
Next Pool = AI-Consolidated
Volume Retention = 1 years
Maximum Volumes = 130
}
___
Pool {
Name = AI-LongTerm
Pool Type = Backup
Recycle = yes
Auto Prune = yes
Maximum Volume Bytes = 50G
Label Format = "AI-LongTerm-"
Volume Use Duration = 2 days
Storage = FileVLT
Volume Retention = 180 days
Maximum Volumes = 130
}
___

Markus Dubois

unread,
May 16, 2021, 7:08:57 AM5/16/21
to bareos-users
Problem solved. In case some other person stumbles over this. The above AI implementation works. The problem wasn't something in Schedule, Job, Device, Storage area, it was something in the fileset.
In the fileset which wasnt working, the include was
   File = "/backup/"

changed to:
   File = "/backup"

so the trailing slash at the end was the culprit.
For whatever reason.... 

Reply all
Reply to author
Forward
0 new messages