# Weekly Pool definition
Pool {
  Name = weekly
  Label Format = "weekly-"
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 14 weeks     # Wenn man weniger Puffer zur Sicherheit haben möchte, kann man die Vorhaltezeit der Vollsicherungen erhöhen.
  Maximum Volume Bytes = 100 GB
#  Maximum Volumes = 15           # Ist nicht unbedingt notwendig, da Volume Retention ausreicht. Mit Maximum Volumes muss man u.U. sogar häufiger manuell eingreifen.
  Volume Use Duration = 23 hours
}

# Daily Pool definition
Pool {
  Name = daily
  Label Format = "daily-"
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 31 days     # gleiches wie oben
  Maximum Volume Bytes = 1 GB
#  Maximum Volumes = 32          # gleiches wie oben
  Volume Use Duration = 23 hours
}

# Im Schedule Differential auskommentieren:
Schedule {
  Name = "WeeklyCycle"
  Run = Full sun at 23:05
#  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}

# Standardmäßig soll Bacula das Pool daily nutzen, Vollsicherungen sollen im Full Pool "weekly" landen:
JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = course-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
  Full Backup Pool = weekly
  Incremental Backup Pool = daily
  Pool = daily
  Priority = 10
  Write Bootstrap = "/home/course/bacula/working/%c.bsr"
} 
